]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
JounralingObjectStore: journal->committed_thru after replay 3489/head
authorSage Weil <sage@redhat.com>
Sun, 2 Nov 2014 22:27:12 +0000 (14:27 -0800)
committerLoic Dachary <ldachary@redhat.com>
Mon, 26 Jan 2015 15:57:57 +0000 (16:57 +0100)
commit3916c835cd9be4c1453471e836d48cdbd4e43fe9
treef28ec4cf00567e19e4bdb30184631b1dfbde02df
parent4e1d00ca66aaa5a87d3865e91877713644c6d56b
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>
(cherry picked from commit 8924158df8580bbb462130b5bb7f753b13513a23)
src/os/FileJournal.cc