From 30218bc58eab69e174d6df0c8e4eceeed776ab96 Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Mon, 21 Nov 2016 19:32:25 +0800 Subject: [PATCH] mds: fix state check in Migrator::find_stale_export_freeze() Iterator p is pointing to next state Possibly fix: http://tracker.ceph.com/issues/{17606,8405} Signed-off-by: Yan, Zheng --- src/mds/Migrator.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mds/Migrator.cc b/src/mds/Migrator.cc index 0e9de762dd75..edd7e5a3d67d 100644 --- a/src/mds/Migrator.cc +++ b/src/mds/Migrator.cc @@ -244,8 +244,7 @@ void Migrator::find_stale_export_freeze() CDir* dir = p->first; export_state_t& stat = p->second; ++p; - if (p->second.state != EXPORT_DISCOVERING && - p->second.state != EXPORT_FREEZING) + if (stat.state != EXPORT_DISCOVERING && stat.state != EXPORT_FREEZING) continue; if (stat.last_cum_auth_pins != dir->get_cum_auth_pins()) { stat.last_cum_auth_pins = dir->get_cum_auth_pins(); -- 2.47.3