Login | Register
My pages Projects Community openCollabNet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Catacomb] LOCK DBMS



Hello,

I've been read lock.c and we need those DBMS tables to implement lock dbms :

locknull :
	int serialno (not unique)
	text fname

lockdiscovery :
	int serialno (not unique)
	int scope;
	int type;
	int depth;
	longlong timeout;

	varchar locktoken[256]

	text owner;
	text auth_user;

lockindirect :
	int serialno  (not unique)
	varchar locktoken[256]
	text key;
	longlong timeout;

For every lock load/save, we need two SQL selects. Is that OK or too slow?

At least we need locknull DB, since we can not write the information in the file like mod_dav_fs.

Any comments on that?

--
Sung Kim <hunkim@cse.ucsc.edu>
http://www.cse.ucsc.edu/~hunkim

 "Dreams become reality!"