]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: Migrator needs to add_dir_context all the way to root.
authorGreg Farnum <gregf@hq.newdream.net>
Thu, 28 Oct 2010 20:03:04 +0000 (13:03 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Thu, 28 Oct 2010 20:49:01 +0000 (13:49 -0700)
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!

src/mds/Migrator.cc

index 3829679cd715bdc3871e52705779090abb96e006..8e997b1bc8fbcf578c00f4b1a5d252ce01526a58 100644 (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();