]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/FileJournal: Update the journal header when closing journal 2139/head
authorMa Jianpeng <jianpeng.ma@intel.com>
Wed, 23 Jul 2014 17:10:38 +0000 (10:10 -0700)
committerSage Weil <sage@redhat.com>
Fri, 25 Jul 2014 01:54:33 +0000 (18:54 -0700)
commit4eb18dd487da4cb621dcbecfc475fc0871b356ac
treee66ec063624e4c36adfbf8be5f43f21d7c0c0b4d
parent4fe07925e4d08ec38aba8c4b72e4655f1fa15419
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