From: John Spray Date: Mon, 19 May 2014 12:09:52 +0000 (+0100) Subject: osdc: make JournalStream::readable const X-Git-Tag: v0.82~48^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f12b9e8be9fc27455d22e17279d4fb281278888e;p=ceph.git osdc: make JournalStream::readable const Signed-off-by: John Spray --- diff --git a/src/osdc/Journaler.cc b/src/osdc/Journaler.cc index 825fbca9977..8051f6839e4 100644 --- a/src/osdc/Journaler.cc +++ b/src/osdc/Journaler.cc @@ -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); diff --git a/src/osdc/Journaler.h b/src/osdc/Journaler.h index 07d6ee5d665..03882e23c42 100644 --- a/src/osdc/Journaler.h +++ b/src/osdc/Journaler.h @@ -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);