SE_instance_get_version_locks

Returns a list of version locks in use on a specified ArcSDE instance

Usage syntax

LONG SE_instance_get_version_locks (const CHAR *server, const CHAR *instance, SE_INSTANCE_VERSION_LOCK **lock_list_addr, LONG *lock_count_addr);

Parameters
server The server name
instance The ArcSDE instance name
lock_list_addr Pointer to an array of returned SE_INSTANCE_VERSION_LOCK structures
lock_count_addr The number of SE_INSTANCE_VERSION_LOCK structures returned
Description

SE_instance_get_version_locks returns an array of SE_INSTANCE_VERSION_LOCK structures, one for each lock currently in place on the specified ArcSDE instance on the specified node. The default instance name is esri_sde. The application should free the list when it is done by calling SE_instance_free_version_locks.

The following information is returned in the SE_INSTANCE_VERSION_LOCK structure:

typedef struct _SE_InstanceVersionLock {
LONG   pid;          /* Gsrvr process id that holds this lock. */
LONG   version_id;   /* Version being locked. */
SHORT  lock_mode;    /* Shared or exclusive. */
} SE_INSTANCE_VERSION_LOCK;

The lock types are:

SE_VERSION_SHARED_LOCK
SE_VERSION_EXCLUSIVE_LOCK
SE_VERSION_EXCLUSIVE_AUTOLOCK

Returns

SE_SUCCESS
SE_FAILURE

SE_INSTANCE_NOT_AVAILABLE

SE_INSTANCE_TOO_EARLY

SE_INVALID_POINTER

SE_IOMGR_NOT_AVAILABLE

SE_NET_FAILURE

SE_OUT_OF_CLMEM

SE_OUT_OF_SVMEM

SE_SERVICE_NOT_FOUND