]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/Throttle: Remove unused return type on Throttle::get()
authorJim Schutt <jaschut@sandia.gov>
Wed, 22 Jun 2011 18:26:25 +0000 (12:26 -0600)
committerSage Weil <sage@newdream.net>
Thu, 23 Jun 2011 17:40:47 +0000 (10:40 -0700)
Signed-off-by: Jim Schutt <jaschut@sandia.gov>
Signed-off-by: Sage Weil <sage@newdream.net>
src/common/Throttle.h

index cd772dd8b29ac906e25a0e8b719f131a73be3512..8fd262573091b3fbad29751e6e141200ebcc1a10 100644 (file)
@@ -68,16 +68,15 @@ public:
     return count;
   }
 
-  bool get(int64_t c = 1, int64_t m = 0) {
+  void get(int64_t c = 1, int64_t m = 0) {
     assert(c >= 0);
     Mutex::Locker l(lock);
     if (m) {
       assert(m > 0);
       _reset_max(m);
     }
-    bool waited = _wait(c);
+    _wait(c);
     count += c;
-    return waited;
   }
 
   /* Returns true if it successfully got the requested amount,