]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
volume_inline.h: Down with assert, again
authorAnders Kaseorg <andersk@mit.edu>
Tue, 23 Jul 2013 18:37:26 +0000 (14:37 -0400)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 28 Aug 2013 16:13:23 +0000 (09:13 -0700)
Commit 34767c6a0f914960c9a1efabe69dd9c312a2b400 replaced all assert
calls in this file with osi_Assert, but shortly thereafter, commit
db6ee95864a8fc5f33b7e95c19c8ff5058d37e92 added VTimedWaitStateChange_r
with two new assert calls.  These are precarious in a public header;
fix them to osi_Assert like the ones in VWaitStateChange_r.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-on: http://gerrit.openafs.org/10094
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
(cherry picked from commit 30fa9480dd99ed93fa642dd8ce9746760fb42180)

Change-Id: Id0bc0e75de000cf3e4133aaf31f52d9a565c8d9f
Reviewed-on: http://gerrit.openafs.org/10095
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/vol/volume_inline.h

index c6df3a510436b533f9201062b1460fc6544640bc..5610d549ee4b0779552c8ef8faf0410cd596e4d4 100644 (file)
@@ -502,11 +502,11 @@ VTimedWaitStateChange_r(Volume * vp, const struct timespec *ts, int *atimedout)
 
     state_save = V_attachState(vp);
 
-    assert(vp->nWaiters || vp->nUsers);
+    osi_Assert(vp->nWaiters || vp->nUsers);
     do {
        VOL_CV_TIMEDWAIT(&V_attachCV(vp), ts, &timeout);
     } while (V_attachState(vp) == state_save && !timeout);
-    assert(V_attachState(vp) != VOL_STATE_FREED);
+    osi_Assert(V_attachState(vp) != VOL_STATE_FREED);
 
     if (atimedout && timeout) {
        *atimedout = 1;