]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc: make JournalStream::readable const
authorJohn Spray <john.spray@inktank.com>
Mon, 19 May 2014 12:09:52 +0000 (13:09 +0100)
committerJohn Spray <john.spray@inktank.com>
Tue, 20 May 2014 13:07:51 +0000 (14:07 +0100)
Signed-off-by: John Spray <john.spray@inktank.com>
src/osdc/Journaler.cc
src/osdc/Journaler.h

index 825fbca99779c1a4d195c159f6dbab388df83645..8051f6839e436b5eb3126a2dcf43bf5183878817 100644 (file)
@@ -1094,7 +1094,7 @@ void Journaler::handle_write_error(int r)
  * to get the next header if header was unavailable, or enough to get the whole
  * next entry if the header was available but the body wasn't).
  */
-bool JournalStream::readable(bufferlist &read_buf, uint64_t *need)
+bool JournalStream::readable(bufferlist &read_buf, uint64_t *need) const
 {
   assert(need != NULL);
 
index 07d6ee5d6657bcdcc1b82c659ff588fb48604f64..03882e23c422923fa97612c08b967ec582311dbb 100644 (file)
@@ -88,7 +88,7 @@ class JournalStream
 
   void set_format(stream_format_t format_) {format = format_;}
 
-  bool readable(bufferlist &bl, uint64_t *need);
+  bool readable(bufferlist &bl, uint64_t *need) const;
   size_t read(bufferlist &from, bufferlist *to, uint64_t *start_ptr);
   size_t write(bufferlist &entry, bufferlist *to, uint64_t const &start_ptr);