mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
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:
parent
e9b11ef3ae
commit
7608ef7232
@ -339,7 +339,9 @@ SVOTE_Beacon(struct rx_call * rxcall, afs_int32 astate,
|
|||||||
lastYesState = astate; /* remember if site is a sync site */
|
lastYesState = astate; /* remember if site is a sync site */
|
||||||
ubik_dbVersion = *avers; /* resync value */
|
ubik_dbVersion = *avers; /* resync value */
|
||||||
ubik_dbTid = *atid; /* transaction id, if any, of active trans */
|
ubik_dbTid = *atid; /* transaction id, if any, of active trans */
|
||||||
|
DBHOLD(ubik_dbase);
|
||||||
urecovery_CheckTid(atid); /* check if current write trans needs aborted */
|
urecovery_CheckTid(atid); /* check if current write trans needs aborted */
|
||||||
|
DBRELE(ubik_dbase);
|
||||||
}
|
}
|
||||||
return vote;
|
return vote;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user