From 2cc1fb04df73ff5e58f6e942688f8074a762e701 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Thu, 18 May 2017 19:08:56 -0400 Subject: [PATCH] mds: use generic name for export dir wait class Signed-off-by: Patrick Donnelly --- src/mds/Migrator.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mds/Migrator.cc b/src/mds/Migrator.cc index e954038de1301..c3f807156014b 100644 --- a/src/mds/Migrator.cc +++ b/src/mds/Migrator.cc @@ -755,11 +755,11 @@ void Migrator::get_export_lock_set(CDir *dir, set& locks) } -class C_M_ExportTargetWait : public MigratorContext { +class C_M_ExportDirWait : public MigratorContext { MDRequestRef mdr; int count; public: - C_M_ExportTargetWait(Migrator *m, MDRequestRef mdr, int count) + C_M_ExportDirWait(Migrator *m, MDRequestRef mdr, int count) : MigratorContext(m), mdr(mdr), count(count) {} void finish(int r) override { mig->dispatch_export_dir(mdr, count); @@ -884,13 +884,13 @@ void Migrator::dispatch_export_dir(MDRequestRef& mdr, int count) export_try_cancel(dir); return; } - mds->wait_for_mdsmap(mds->mdsmap->get_epoch(), new C_M_ExportTargetWait(this, mdr, count+1)); + mds->wait_for_mdsmap(mds->mdsmap->get_epoch(), new C_M_ExportDirWait(this, mdr, count+1)); return; } if (!dir->inode->get_parent_dn()) { dout(7) << "waiting for dir to become stable before export: " << *dir << dendl; - dir->add_waiter(CDir::WAIT_CREATED, new C_M_ExportTargetWait(this, mdr, 1)); + dir->add_waiter(CDir::WAIT_CREATED, new C_M_ExportDirWait(this, mdr, 1)); return; } -- 2.39.5