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, 14 Jun 2010 03:39:14 +0000 (20:39 -0700)
commiteaeff661c26b0f5a504a547952ea1d0f0241b539
treeaba582b768507d10b247d0f3baa96f1460da3aba
parentb8177960d4e376011adf379b87d8b8ba051c0fd0
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: I5604fa3cc8a334606f5e3535aed6f6cedcb5f167
Reviewed-on: http://gerrit.openafs.org/2103
Tested-by: Andrew Deason <adeason@sinenomine.net>
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