12 #include <mix/ErrCodes.h>
13 #include <mix/locks.h>
19 #define DB_LOCK_TRIES 3
23 #define DB_LOCK_MAX_DELAY 300000
26 #define DB_LOCK_UNKNOWN_ID ((DbIndex)(-1))
29 #define DB_LOCK_EXCL_FNAME_EXT ".exl"
32 #define DB_LOCK_SHARED_FNAME_EXT ".lac"
35 #define DB_LOCK_READ_ONLY "ro"
38 #define DB_LOCK_READ_WRITE "rw"
48 char moment[MOMENT_LEN+1];
49 char appname[WE_NAME_LEN+1];
50 char owner[WE_NAME_LEN+1];
51 char workplace[WE_NAME_LEN+1];
52 char host[WE_NAME_LEN+1];
73 const char* dbname, DbAccess dbac);
91 const char* dbname, DbAccess new_dbac);
Definition: dbnamedefs.h:67
ErrCode CheckLockedDbResource(const char *project, const dbNameStruct *dbns, unsigned *ndescr, DbLockDescr **ldescr)
ErrCode RelockDbResource(LockId lid, const char *project, const dbNameStruct *dbns, DbAccess new_dbac)
ErrCode RelockDbResourceByName(LockId lid, const char *project, const char *dbname, DbAccess new_dbac)
ErrCode ReleaseLockOfDbResource(const char *project, const dbNameStruct *dbns, LockId lid)
LockId id
Definition: dblocks.h:44
ErrCode ReleaseDbResource(const char *project, const dbNameStruct *dbns)
ErrCode LockDbResourceByName(LockId *plid, const char *project, const char *dbname, DbAccess dbac)
ErrCode LockDbResource(LockId *plid, const char *project, const dbNameStruct *dbns, DbAccess dbac)