mirror of
https://github.com/ceph/ceph
synced 2025-02-19 08:57:27 +00:00
mds: Migrator needs to add_dir_context all the way to root.
It was going to the default subtree root, which doesn't work when we've just created a new subtree root out of the given dir!
This commit is contained in:
parent
745a8ee56a
commit
771c2c44fc
@ -1189,7 +1189,7 @@ void Migrator::handle_export_ack(MExportDirAck *m)
|
||||
EExport *le = new EExport(mds->mdlog, dir);
|
||||
mds->mdlog->start_entry(le);
|
||||
|
||||
le->metablob.add_dir_context(dir);
|
||||
le->metablob.add_dir_context(dir, EMetaBlob::TO_ROOT);
|
||||
le->metablob.add_dir( dir, false );
|
||||
for (set<CDir*>::iterator p = bounds.begin();
|
||||
p != bounds.end();
|
||||
|
Loading…
Reference in New Issue
Block a user