]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
JounralingObjectStore: journal->committed_thru after replay 2745/head
authorSage Weil <sage@redhat.com>
Sun, 2 Nov 2014 22:27:12 +0000 (14:27 -0800)
committerSage Weil <sage@redhat.com>
Sun, 2 Nov 2014 22:27:12 +0000 (14:27 -0800)
commit8924158df8580bbb462130b5bb7f753b13513a23
tree5277db24686e482bf21226e9c2b5d24a68e905f7
parent6fa686c8c42937dd069591f16de92e954d8ed34d
JounralingObjectStore: journal->committed_thru after replay

It's possible that the osd stopped between when the filestore
op_seq file was updated and when the journal was trimmed.  In
that case, it's possible that on boot the journal might be
full, and yet not be trimmed because commit_start assumes
there is no work to do.  Calling committed_thru on the journal
ensures that the journal matches committed_seq.

Backport: giant firefly emperor dumpling
Fixes: #6756
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
src/os/FileJournal.cc