]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix logic in check_pg_upmaps 54276/head
authorLaura Flores <lflores@ibm.com>
Thu, 28 Sep 2023 17:52:11 +0000 (17:52 +0000)
committerLaura Flores <lflores@ibm.com>
Tue, 31 Oct 2023 15:40:54 +0000 (15:40 +0000)
The logic was changed in check_pg_upmaps
in a Reef refactor, which results in recommendations
made by the upmap balancer even when it says there are
no optimizations.

Fixes: https://tracker.ceph.com/issues/63029
Signed-off-by: Laura Flores <lflores@ibm.com>
(cherry picked from commit ae11bbe6b2805740d3621cc47c68a5f0da493df0)

src/osd/OSDMap.cc

index 8142a4ae83399d8f023464810dd78a7f170e6b8e..7a97f33e3786d5a6f471a2cf929072b659148146 100644 (file)
@@ -2145,8 +2145,8 @@ bool OSDMap::check_pg_upmaps(
                        << j->first << " " << j->second
                        << dendl;
         to_cancel->push_back(pg);
-      } else {
-        //Josh--check partial no-op here.
+      } else if (newmap != j->second) {
+        // check partial no-op here.
         ldout(cct, 10) << __func__ << " simplifying partially no-op pg_upmap_items "
                        << j->first << " " << j->second
                        << " -> " << newmap