]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix const-ness of is_dirty()
authorSage Weil <sage@newdream.net>
Tue, 12 Oct 2010 20:59:44 +0000 (13:59 -0700)
committerSage Weil <sage@newdream.net>
Tue, 12 Oct 2010 20:59:44 +0000 (13:59 -0700)
This was fixed before, got lost somehow.

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/ScatterLock.h

index ffcdbee4a2da3ccb7e56a86168702cb170bddc61..b3bff6303d0d5b29862196fa208267f57e4f66c0 100644 (file)
@@ -40,7 +40,7 @@ class ScatterLock : public SimpleLock {
   };
   more_bits_t *_more;
 
-  bool have_more() { return _more ? true : false; }
+  bool have_more() const { return _more ? true : false; }
   void try_clear_more() {
     if (_more && _more->empty()) {
       delete _more;
@@ -79,7 +79,7 @@ public:
     return have_more() ? _more->scatter_wanted : false; 
   }
 
-  bool is_dirty() {
+  bool is_dirty() const {
     return have_more() ? _more->dirty : false;
   }
   bool is_flushing() {