]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
journaler: fix partial tail entry correction
authorSage Weil <sage@newdream.net>
Fri, 1 Apr 2011 22:57:46 +0000 (15:57 -0700)
committerSage Weil <sage@newdream.net>
Fri, 1 Apr 2011 22:57:46 +0000 (15:57 -0700)
commitd4c4b4a0b5cabda8a27c7ef412a92821af3333c5
tree76ad704126af5400e1fd839ea3dbaa20d0832f63
parent2630ecc618ced02620d2644b4c5fc91f83c19286
journaler: fix partial tail entry correction

If we encounter a partial tail entry, we drop it by moving the write_pos
(end of journal) back to read_pos.  We also need to reset the read
state (read_buf, requested/received_pos) so that subsequent replay attempts
won't be horribly confused.

Signed-off-by: Sage Weil <sage@newdream.net>
src/osdc/Journaler.cc