From 7b6e8a25267ff242513d2f8e01f29ab2af3ebb23 Mon Sep 17 00:00:00 2001 From: Glauber Costa Date: Tue, 27 Sep 2016 13:01:57 -0400 Subject: [PATCH] streamed_mutation: make _buffer private It is currently protected, but now all users go through push_mutation_fragment(). So we can safely move its visibility to guarantee that it stays that way. Signed-off-by: Glauber Costa --- streamed_mutation.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streamed_mutation.hh b/streamed_mutation.hh index adb8b17110..7ee8f4c108 100644 --- a/streamed_mutation.hh +++ b/streamed_mutation.hh @@ -399,6 +399,7 @@ public: // supposed to fill a buffer with mutation fragments until is_buffer_full() // or end of stream is encountered. class impl { + circular_buffer _buffer; protected: // FIXME: use size in bytes of the mutation_fragments static constexpr size_t buffer_size = 16; @@ -408,7 +409,6 @@ public: tombstone _partition_tombstone; bool _end_of_stream = false; - circular_buffer _buffer; friend class streamed_mutation; protected: