Verify, not Assert, for the (util) global mutex
authorBen Kaduk <kaduk@mit.edu>
Wed, 17 Jul 2013 20:09:09 +0000 (16:09 -0400)
committerDerrick Brashear <shadow@your-file-system.com>
Fri, 2 Aug 2013 16:01:17 +0000 (09:01 -0700)
We don't want turning off debugging to force open this lock.

Change-Id: Ia8dd689c506e42a4bf87c83af23d7457df12f8b9
Reviewed-on: http://gerrit.openafs.org/10092
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>

src/util/pthread_glock.h

index 1fe464b..e323e3f 100644 (file)
@@ -35,10 +35,10 @@ extern int pthread_recursive_mutex_lock(pthread_recursive_mutex_p);
 extern int pthread_recursive_mutex_unlock(pthread_recursive_mutex_p);
 
 #define LOCK_GLOBAL_MUTEX \
-    opr_Assert(pthread_recursive_mutex_lock(&grmutex)==0)
+    opr_Verify(pthread_recursive_mutex_lock(&grmutex)==0)
 
 #define UNLOCK_GLOBAL_MUTEX \
-    opr_Assert(pthread_recursive_mutex_unlock(&grmutex)==0)
+    opr_Verify(pthread_recursive_mutex_unlock(&grmutex)==0)
 
 #else