summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-04-01 15:58:34 -0700
committerSage Weil <sage@newdream.net>2011-04-01 15:58:34 -0700
commitb21fbab19d2df242f092562a9c9d40dd3935fe60 (patch)
tree99db082da596107ac6b62419c04e5fbd2db87b42
parent65714c59ee7cb952b8bb2c477db169f32cc4df84 (diff)
downloadceph-b21fbab19d2df242f092562a9c9d40dd3935fe60.tar.gz
journaler: adjusted requested/received_pos when dropping journal tail
Signed-off-by: Sage Weil <sage@newdream.net>
-rw-r--r--src/osdc/Journaler.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osdc/Journaler.cc b/src/osdc/Journaler.cc
index 486fb8155c1..f3241c487db 100644
--- a/src/osdc/Journaler.cc
+++ b/src/osdc/Journaler.cc
@@ -811,6 +811,8 @@ bool Journaler::is_readable()
if (write_pos > read_pos)
junk_tail_pos = write_pos; // note old tail
write_pos = flush_pos = ack_pos = safe_pos = read_pos;
+ requested_pos = received_pos = read_pos;
+ read_buf.clear();
assert(write_buf.length() == 0);
// truncate?