]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdc/Journaler: avoid executing on_safe contexts prematurely 15468/head
authorYan, Zheng <zyan@redhat.com>
Tue, 23 May 2017 13:46:54 +0000 (21:46 +0800)
committerNathan Cutler <ncutler@suse.com>
Wed, 14 Jun 2017 14:40:33 +0000 (16:40 +0200)
commit06cf9f365033f7913051bdf4060f0bc6fc0444d7
tree8a69959c5e2e18ba63920dfb93cd7722ed4f886d
parent2e299b50de4a297fee2aec21290632336d239857
osdc/Journaler: avoid executing on_safe contexts prematurely

Journaler::_do_flush() can skip flushing some data when prezered
journal space isn't enough. Before updating Journaler::next_safe_pos,
we need to check if Journaler::_do_flush() has flushed enough data.

Fixes: http://tracker.ceph.com/issues/20055
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 6511e7a9e35a14216c03cd6921ca4d232274f953)
src/osdc/Journaler.cc