]> git-server-git.apps.pok.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>
Wed, 20 Aug 2014 15:31:52 +0000 (08:31 -0700)
commit5bf472aefb7360a1fe17601b42e551df120badfb
tree4a7adc6e97149099ebdc3ea4f88c64c4eae37023
parentbb77e3af0e89b09c0c7c70cb7577f6206215e389
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>
src/os/FileJournal.cc