From 6bdd9e7f8bc1f59355f30901b160ffabcc8488f2 Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Tue, 9 May 2017 16:26:48 +0800 Subject: [PATCH] mds: properly cleanup export states Signed-off-by: "Yan, Zheng" --- 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 5aaea42b0b7..4e8934751d1 100644 --- a/src/mds/Migrator.cc +++ b/src/mds/Migrator.cc @@ -883,7 +883,7 @@ void Migrator::dispatch_export_dir(MDRequestRef& mdr, int count) dout(7) << "dest is not yet an export target" << dendl; if (count > 3) { dout(5) << "dest has not been added as export target after three MDSMap epochs, canceling export" << dendl; - mds->mdcache->request_finish(mdr); + export_try_cancel(dir); return; } mds->wait_for_mdsmap(mds->mdsmap->get_epoch(), new C_M_ExportTargetWait(this, mdr, count+1)); -- 2.47.3