From: Yan, Zheng Date: Mon, 21 Nov 2016 11:32:25 +0000 (+0800) Subject: mds: fix state check in Migrator::find_stale_export_freeze() X-Git-Tag: v11.1.0~201^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=30218bc58eab69e174d6df0c8e4eceeed776ab96;p=ceph.git 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 --- 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();