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>
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();