diff --git a/src/mds/CDir.cc b/src/mds/CDir.cc index 99bbc841e33..8761876d6ed 100644 --- a/src/mds/CDir.cc +++ b/src/mds/CDir.cc @@ -896,6 +896,7 @@ void CDir::split(int bits, list& subs, list& waiters, bool repl subs.push_back(f); inode->add_dirfrag(f); + f->set_dir_auth(get_dir_auth()); f->prepare_new_fragment(replay); } @@ -937,6 +938,7 @@ void CDir::merge(list& subs, list& waiters, bool replay) { dout(10) << "merge " << subs << dendl; + set_dir_auth(subs.front()->get_dir_auth()); prepare_new_fragment(replay); nest_info_t rstatdiff;