]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
buffer: make is_contiguous() const
authorSage Weil <sage@redhat.com>
Mon, 19 Oct 2015 17:26:00 +0000 (13:26 -0400)
committerSage Weil <sage@redhat.com>
Mon, 19 Oct 2015 18:06:28 +0000 (14:06 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/common/buffer.cc
src/include/buffer.h

index bca14d19317799bd3286de0ce98a36d8c934afcc..6f200bcd5d1435615ffb38c3bfde5e44c72823e1 100644 (file)
@@ -1333,7 +1333,7 @@ static simple_spinlock_t buffer_debug_lock = SIMPLE_SPINLOCK_INITIALIZER;
     }
   }
   
-  bool buffer::list::is_contiguous()
+  bool buffer::list::is_contiguous() const
   {
     return &(*_buffers.begin()) == &(*_buffers.rbegin());
   }
index f28bc5e86a7787b982259607ebacd07cf27d5cfd..5f90d7bdb0a6346a5cf9fc2fd8dc236225b2cb41 100644 (file)
@@ -434,7 +434,7 @@ public:
     void zero();
     void zero(unsigned o, unsigned l);
 
-    bool is_contiguous();
+    bool is_contiguous() const;
     void rebuild();
     void rebuild(ptr& nb);
     void rebuild_aligned(unsigned align);