]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
src/mon/MonMap: modify dump function 60629/head
authorKamoltat Sirivadhna <ksirivad@redhat.com>
Sat, 14 Sep 2024 18:22:55 +0000 (18:22 +0000)
committerroot <root@vossi06.front.sepia.ceph.com>
Tue, 5 Nov 2024 19:08:29 +0000 (19:08 +0000)
Problem:
Current dump for "removed_ranks" and "disallowed_leaders"
doesn't have the correct format so the python test
script can parse through these values.

Solution:
Modified the values such that it is in the correct format

Signed-off-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
(cherry picked from commit a7f3b7b749acabd235d615a3f5b80e3398a6d80d)

src/mon/MonMap.cc

index 6eb37df171a9086afea3e9ebbaf19dcc47f38dc8..5598bbe87091265e12dcab6f0842572022a8aa74 100644 (file)
@@ -431,10 +431,10 @@ void MonMap::dump(Formatter *f) const
   f->dump_unsigned("min_mon_release", to_integer<unsigned>(min_mon_release));
   f->dump_string("min_mon_release_name", to_string(min_mon_release));
   f->dump_int ("election_strategy", strategy);
-  f->dump_stream("disallowed_leaders") << disallowed_leaders;
+  f->dump_stream("disallowed_leaders") << disallowed_leaders;
   f->dump_bool("stretch_mode", stretch_mode_enabled);
   f->dump_string("tiebreaker_mon", tiebreaker_mon);
-  f->dump_stream("removed_ranks") << removed_ranks;
+  f->dump_stream("removed_ranks") << removed_ranks;
   f->open_object_section("features");
   persistent_features.dump(f, "persistent");
   optional_features.dump(f, "optional");