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: openafs-devel-1_7_1~644 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=5548f6540557795ded65a52c7066839c5eef468f;hp=1e2a0e46ea2db58c0ab4d817412303ab90be1be2 ubik: SVOTE_Beacon should hold the DB lock for CheckTid Change-Id: Iab51bf4aea704870813a4f4c082110ed7cd1eb04 Reviewed-on: http://gerrit.openafs.org/4262 Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/ubik/vote.c b/src/ubik/vote.c index b59eb62..c89a00c 100644 --- a/src/ubik/vote.c +++ b/src/ubik/vote.c @@ -320,7 +320,9 @@ SVOTE_Beacon(struct rx_call * rxcall, afs_int32 astate, vote_globals.ubik_dbVersion = *avers; /* resync value */ vote_globals.ubik_dbTid = *atid; /* transaction id, if any, of active trans */ UBIK_VOTE_UNLOCK; + DBHOLD(ubik_dbase); urecovery_CheckTid(atid, 0); /* check if current write trans needs aborted */ + DBRELE(ubik_dbase); } else { UBIK_VOTE_UNLOCK; }