]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: properly commit new dirfrag before splitting it 12125/head
authorYan, Zheng <zyan@redhat.com>
Tue, 22 Nov 2016 09:40:46 +0000 (17:40 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 23 Nov 2016 07:12:58 +0000 (15:12 +0800)
commit8e83ddb3f9b0bf74f2b345cc44a7d839a7e30bd5
tree031bc6bdc86a13ed014424cbb4e25ef370700313
parent9773abb50fdb15b1efeaa93aeab08a99180f4ad8
mds: properly commit new dirfrag before splitting it

CDir::is_new() check is invalid before the new directory gets
journaled. Besides, it's not good to commit a directory before
it gets journaled.

See commit 07ccc4e7 for more information.

Fixes: http://tracker.ceph.com/issues/17990
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/CDir.cc
src/mds/CDir.h
src/mds/MDCache.cc
src/mds/Server.cc