mirror of
https://github.com/ceph/ceph
synced 2025-01-03 17:42:36 +00:00
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:
parent
0c9c294d14
commit
88e6db1f25
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user