]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/DaemonServer: skip adjusting pgp_num when merging is in-progress
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 3 Sep 2019 04:02:42 +0000 (12:02 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 4 Sep 2019 12:26:52 +0000 (20:26 +0800)
otherwise there is a possibility we might change the up set of the
merge participants and hence have to back off the merge process.
Also this will cause some other (racy) corner cases that are hard
to take care of.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mgr/DaemonServer.cc

index 9d09f1b5c0626c592e66498e533429157c54830b..99e4487296575e8d81634da237b4ff6aba335945 100644 (file)
@@ -2512,6 +2512,7 @@ void DaemonServer::adjust_pgs()
                       << " and " << merge_target
                       << ")" << dendl;
              pg_num_to_set[osdmap.get_pool_name(i.first)] = target;
+              continue;
            }
          } else if (p.get_pg_num_target() > p.get_pg_num()) {
            // pg_num increase (split)