From 5548f6540557795ded65a52c7066839c5eef468f Mon Sep 17 00:00:00 2001 From: Marc Dionne Date: Sat, 29 Jan 2011 12:09:30 -0500 Subject: [PATCH] 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 --- src/ubik/vote.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ubik/vote.c b/src/ubik/vote.c index b59eb6280..c89a00c3b 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; } -- 2.39.5