From: Marc Dionne Date: Sat, 29 Jan 2011 17:09:30 +0000 (-0500) Subject: ubik: SVOTE_Beacon should hold the DB lock for CheckTid X-Git-Tag: upstream/1.6.21^2~18 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7608ef72321a4899f96026298c8c20888a5f9019;p=packages%2Fo%2Fopenafs.git ubik: SVOTE_Beacon should hold the DB lock for CheckTid Reviewed-on: https://gerrit.openafs.org/4262 Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry picked from commit 5548f6540557795ded65a52c7066839c5eef468f) Change-Id: I0d4a4d5e796bc6cb731f00db34cc0776f746ca85 Reviewed-on: https://gerrit.openafs.org/12516 Tested-by: BuildBot Reviewed-by: Mark Vitale Reviewed-by: Benjamin Kaduk Reviewed-by: Stephan Wiesand --- diff --git a/src/ubik/vote.c b/src/ubik/vote.c index 13af88532..7b9e526fd 100644 --- a/src/ubik/vote.c +++ b/src/ubik/vote.c @@ -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; }