ubik: remote: fix DB lock usage
authorMarc Dionne <marc.c.dionne@gmail.com>
Sat, 16 Apr 2011 15:52:57 +0000 (11:52 -0400)
committerDerrick Brashear <shadow@dementia.org>
Wed, 27 Apr 2011 00:30:14 +0000 (17:30 -0700)
commita6091cacd89d430d01145efbcef528d550395f1c
tree5c3bc35ae88b09f48f72d81879e711dba211ccad
parenta33f77b6e11214326f5e752de171602c0e9efe86
ubik: remote: fix DB lock usage

Many of the RPC functions in the remote package have a similar
prologue that makes use of ubik_currentTrans before taking the
DB lock.  Take the lock earlier, and rely on the ubik_dbase global
instead of the dbase pointer in ubik_currentTrans.

In GetVersion, take the lock earlier to cover the call to
ubeacon_AmSyncSite.

Change-Id: Ib8480163f2cab2a6ff6a6462cb67fce02f3e8094
Reviewed-on: http://gerrit.openafs.org/4488
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/ubik/remote.c