mirror of
https://github.com/ceph/ceph
synced 2025-01-03 01:22:53 +00:00
mds: preserve dir_auth when spliting/merging dirfrags
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
This commit is contained in:
parent
3dc51dea31
commit
98105b2448
@ -896,6 +896,7 @@ void CDir::split(int bits, list<CDir*>& subs, list<Context*>& 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<CDir*>& subs, list<Context*>& waiters, bool replay)
|
||||
{
|
||||
dout(10) << "merge " << subs << dendl;
|
||||
|
||||
set_dir_auth(subs.front()->get_dir_auth());
|
||||
prepare_new_fragment(replay);
|
||||
|
||||
nest_info_t rstatdiff;
|
||||
|
Loading…
Reference in New Issue
Block a user