From c76e21e9a47a2c478dc39062b3c7ba6d264bcc5a Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 22 Sep 2019 20:43:49 +0800 Subject: [PATCH] mon/MgrMap: dump mgr_features as an object property it's a property of "standby" object, not an element of "available_modules". it's a follow-up fix of 351a3b9d Signed-off-by: Kefu Chai --- src/mon/MgrMap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/MgrMap.h b/src/mon/MgrMap.h index c3db2473556..ab82b2d63e4 100644 --- a/src/mon/MgrMap.h +++ b/src/mon/MgrMap.h @@ -457,11 +457,11 @@ public: f->open_object_section("standby"); f->dump_int("gid", i.second.gid); f->dump_string("name", i.second.name); + f->dump_unsigned("mgr_features", i.second.mgr_features); f->open_array_section("available_modules"); for (const auto& j : i.second.available_modules) { j.dump(f); } - f->dump_unsigned("mgr_features", i.second.mgr_features); f->close_section(); f->close_section(); } -- 2.39.5