diff options
author | Sage Weil <sage@newdream.net> | 2011-04-01 15:58:34 -0700 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-04-01 15:58:34 -0700 |
commit | b21fbab19d2df242f092562a9c9d40dd3935fe60 (patch) | |
tree | 99db082da596107ac6b62419c04e5fbd2db87b42 | |
parent | 65714c59ee7cb952b8bb2c477db169f32cc4df84 (diff) | |
download | ceph-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.cc | 2 |
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? |