ubik: add interface for reading during write locks
authorAndrew Deason <adeason@sinenomine.net>
Thu, 20 May 2010 20:22:11 +0000 (15:22 -0500)
committerDerrick Brashear <shadow@dementia.org>
Mon, 23 Aug 2010 16:32:13 +0000 (09:32 -0700)
commitfd7f7469bdbde24320c3ac8b4f7015d495b47bff
tree0187faf18f353ed49ad63adf3b743c489d97bc94
parent570236dd55e79e8886b45f19cef59ec3fa9d53f6
ubik: add interface for reading during write locks

Add ubik_BeginTransReadAnyWrite, which allows for reading from the
database, even while there is a conflicting ubik write lock. Reads are
still blocked while the local database is updating due to a write
transaction commit.

Change-Id: I025e595ad699d5a969a0676691530d90c65f1920
Reviewed-on: http://gerrit.openafs.org/2592
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/ubik/lock.c
src/ubik/remote.c
src/ubik/ubik.c
src/ubik/ubik.p.h