]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: properly cleanup export states
authorYan, Zheng <zyan@redhat.com>
Tue, 9 May 2017 08:26:48 +0000 (16:26 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 9 May 2017 08:26:48 +0000 (16:26 +0800)
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/Migrator.cc

index 5aaea42b0b7882390dce1e05a38d687545b626d2..4e8934751d162102483dcaf69edb873df6282939 100644 (file)
@@ -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));