mds: update export targets even when not active

Problem caught test_migration_on_shutdown. Migration could not proceed because
export_targets were not being updated.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
Patrick Donnelly 2017-05-08 22:26:48 -04:00
parent 0c9c294d14
commit 88e6db1f25
No known key found for this signature in database
GPG Key ID: 3A2A7E25BEA8AADB

View File

@ -284,13 +284,16 @@ void MDSRankDispatcher::tick()
if (is_active()) {
balancer->tick();
update_targets(ceph_clock_now());
mdcache->find_stale_fragment_freeze();
mdcache->migrator->find_stale_export_freeze();
if (snapserver)
snapserver->check_osd_map(false);
}
if (is_active() || is_stopping()) {
update_targets(ceph_clock_now());
}
// shut down?
if (is_stopping()) {
mdlog->trim();