From 79c5dc99132466370fddd7c3377f684b7c826161 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Wed, 12 Jan 2011 14:54:01 -0800 Subject: [PATCH] mds: use direct replay test when deciding whether to rebalance. The previous use of standby_for_rank testing was prone to errors and I think would have ended up causing bugs if it was in the middle of a standby_replay run when it got a new MDS map pushing it into regular replay mode. Signed-off-by: Greg Farnum --- src/mds/MDS.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/MDS.cc b/src/mds/MDS.cc index 6f3bdf6150d1b..79372a6a2bc6f 100644 --- a/src/mds/MDS.cc +++ b/src/mds/MDS.cc @@ -995,7 +995,7 @@ void MDS::handle_mds_map(MMDSMap *m) mdcache->migrator->handle_mds_failure_or_stop(*p); } - if (standby_for_rank < 0) //if we're not replaying + if (!is_any_replay()) balancer->try_rebalance(); out: -- 2.39.5