]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/FileJournal: Update the journal header when closing journal
authorMa Jianpeng <jianpeng.ma@intel.com>
Wed, 23 Jul 2014 17:10:38 +0000 (10:10 -0700)
committerSage Weil <sage@redhat.com>
Tue, 21 Oct 2014 13:55:02 +0000 (06:55 -0700)
commit4a43ea171d84a9f3a13064030eb386fcfbe3bbb8
treed3f8d95b32a55d8cd86d8e2cfd95fb9ceacf5e74
parent0975ec9cec1c466f7b15f5173541a7eab02dae18
os/FileJournal: Update the journal header when closing journal

When closing journal, it should check must_write_header and update
journal header if must_write_header alreay set.
It can reduce the nosense journal-replay after restarting osd.

Signed-off-by: Ma Jianpeng <jianpeng.ma@intel.com>
Reviewed-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 5bf472aefb7360a1fe17601b42e551df120badfb)
src/os/FileJournal.cc