HP OpenVMS Systemsask the wizard |
The Question is:
Hello!
I use "sys$create_galaxy_lock_table" for creating lock table on one galaxy
instance. For map this lock table on another instance, i use the same function
and same parameters for this function. If i run my program on first and second
instance under equal u
ser (e.g. Ant and Ant),then table lock created on first instance successfuly
mapped in second instance. If i run my program on first and second instance
under different user (e.g. Ant and Boris in different group),then table lock
created on first instance
don't mapped in second instance, and system create the own table lock. Both
instance share UAF information. What can i make, so that on second instance my
lock table mapped without dependency from user who create this table on
another instance.
This strings from my code (i based on CGU$BALANCER example)
/* Get the size of a Galaxy lock */
status = sys$get_galaxy_lock_size(&min_size,&max_size);
if (_failed(status))
{
printf("Error sys$get_galaxy_lock_size\n");
return (status);
}
status = sys$create_galaxy_lock_table("TEST_GLOCK_TB",PSL$C_USER,
PAGESIZE,GLCKTBL$C_PROCESS,0,min_size,&glock_table_handle);
Thank you in advance.
Anton Yelin
The Answer is : By default, lock resource names are specific to the UIC group. Locks specified as system-wide locks are not specific to the UIC group.
|