From 771c2c44fcf056e54f4c2e53bfe6206f1098e189 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Thu, 28 Oct 2010 13:03:04 -0700 Subject: [PATCH] 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! --- src/mds/Migrator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/Migrator.cc b/src/mds/Migrator.cc index 3829679cd715b..8e997b1bc8fbc 100644 --- a/src/mds/Migrator.cc +++ b/src/mds/Migrator.cc @@ -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::iterator p = bounds.begin(); p != bounds.end(); -- 2.39.5