ubik: SVOTE_Beacon should hold the DB lock for CheckTid

Reviewed-on: https://gerrit.openafs.org/4262
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 5548f6540557795ded65a52c7066839c5eef468f)

Change-Id: I0d4a4d5e796bc6cb731f00db34cc0776f746ca85
Reviewed-on: https://gerrit.openafs.org/12516
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
This commit is contained in:
Marc Dionne 2011-01-29 12:09:30 -05:00 committed by Stephan Wiesand
parent e9b11ef3ae
commit 7608ef7232

View File

@ -339,7 +339,9 @@ SVOTE_Beacon(struct rx_call * rxcall, afs_int32 astate,
lastYesState = astate; /* remember if site is a sync site */
ubik_dbVersion = *avers; /* resync value */
ubik_dbTid = *atid; /* transaction id, if any, of active trans */
DBHOLD(ubik_dbase);
urecovery_CheckTid(atid); /* check if current write trans needs aborted */
DBRELE(ubik_dbase);
}
return vote;
}