From: Xiubo Li Date: Thu, 28 Jul 2022 07:40:58 +0000 (+0800) Subject: mds: remove the stale class C_MDC_EmptyImport code X-Git-Tag: v18.0.0~47^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F47469%2Fhead;p=ceph.git mds: remove the stale class C_MDC_EmptyImport code The class C_MDC_EmptyImport was added but never ever been used. Signed-off-by: Xiubo Li --- diff --git a/src/mds/Migrator.cc b/src/mds/Migrator.cc index caa7e0053a60..130ed08c1d21 100644 --- a/src/mds/Migrator.cc +++ b/src/mds/Migrator.cc @@ -153,21 +153,6 @@ void Migrator::dispatch(const cref_t &m) } } - -class C_MDC_EmptyImport : public MigratorContext { - CDir *dir; -public: - C_MDC_EmptyImport(Migrator *m, CDir *d) : - MigratorContext(m), dir(d) { - dir->get(CDir::PIN_PTRWAITER); - } - void finish(int r) override { - mig->export_empty_import(dir); - dir->put(CDir::PIN_PTRWAITER); - } -}; - - void Migrator::export_empty_import(CDir *dir) { dout(7) << *dir << dendl;