From cc72cb1e811f8cffca93c8b15009534cada776ba Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Sat, 4 Jun 2011 16:41:41 +0100 Subject: [PATCH] ubik: Initialise global version lock before use Commit e4ac552ab79be21d90397079eaf6be7050497752 introduced a global version lock to ubik, but doesn't initialise this lock before make use of it. On platforms which require that pthread mutexes are initialsed, this causes an assertion failure. Initialise this lock at the same time as we MUTEX_INIT all of our other locks. Change-Id: Ib5ef75d443101a823738fba55c0760cb1848dbcf Reviewed-on: http://gerrit.openafs.org/4780 Tested-by: BuildBot Reviewed-by: Marc Dionne Reviewed-by: Jeffrey Altman --- src/ubik/ubik.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ubik/ubik.c b/src/ubik/ubik.c index 14992daba..dd55ac891 100644 --- a/src/ubik/ubik.c +++ b/src/ubik/ubik.c @@ -414,6 +414,7 @@ ubik_ServerInitCommon(afs_uint32 myHost, short myPort, MUTEX_INIT(&beacon_globals.beacon_lock, "beacon lock", MUTEX_DEFAULT, 0); MUTEX_INIT(&vote_globals.vote_lock, "vote lock", MUTEX_DEFAULT, 0); MUTEX_INIT(&addr_globals.addr_lock, "address lock", MUTEX_DEFAULT, 0); + MUTEX_INIT(&version_globals.version_lock, "version lock", MUTEX_DEFAULT, 0); #else Lock_Init(&tdb->versionLock); #endif -- 2.39.5