]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
JounralingObjectStore: journal->committed_thru after replay
authorSamuel Just <sam.just@inktank.com>
Tue, 12 Nov 2013 21:39:04 +0000 (13:39 -0800)
committerSamuel Just <sam.just@inktank.com>
Thu, 14 Nov 2013 20:24:22 +0000 (12:24 -0800)
commitd8d27f13e11dcaefd3aa1c049b97c980283da575
tree681135f565f026d05b4cff92a7495bb2f5d36df4
parentaef3378bd721ff4b73ad3a7a8b07e5f6e2e578f8
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: 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
src/os/JournalingObjectStore.cc