]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
throttle: allow take(0)
authorSage Weil <sage@newdream.net>
Tue, 8 Jun 2010 22:36:55 +0000 (15:36 -0700)
committerSage Weil <sage@newdream.net>
Tue, 8 Jun 2010 22:37:36 +0000 (15:37 -0700)
src/common/Throttle.h

index d6735dd864fd3f39dc5cbd6d13156709715add93..b1c82b55c875286ae47b2a67b43c99bb4f421381 100644 (file)
@@ -62,7 +62,7 @@ public:
   }
 
   int64_t take(int64_t c = 1) {
-    assert(c > 0);
+    assert(c >= 0);
     Mutex::Locker l(lock);
     count += c;
     return count;