Because 'r' was set inside loop, these would
fail to set it (leaving ENOSYS) if no
metadata is present.
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit
5fe4fe4d92f5b2d67896beac9b5b3b48b309a6b4)
Conflicts:
src/mon/Monitor.cc and src/mon/MDSMonitor.cc
changes relate to features that are not backported to jewel
goto reply;
f->close_section();
} else {
+ r = 0;
f->open_array_section("osd_metadata");
for (int i=0; i<osdmap.get_max_osd(); ++i) {
if (osdmap.exists(i)) {