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:
Greg Farnum 2010-10-28 13:03:04 -07:00
parent 745a8ee56a
commit 771c2c44fc

View File

@ -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();