]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix blacklist field in OSDMap::dump
authorJohn Spray <john.spray@redhat.com>
Fri, 22 May 2015 09:48:32 +0000 (10:48 +0100)
committerJohn Spray <john.spray@redhat.com>
Tue, 26 May 2015 09:58:32 +0000 (10:58 +0100)
This was using an array_section so we were getting
a list of only the times, instead of an array
mapping addr to time.

Signed-off-by: John Spray <john.spray@redhat.com>
src/osd/OSDMap.cc

index 1700f6b6e6f2f1d10abd499cc9096441b0be77a2..cab30e36017279c37077a42f1f9a1d508078f01d 100644 (file)
@@ -2318,7 +2318,7 @@ void OSDMap::dump(Formatter *f) const
   }
   f->close_section(); // primary_temp
 
-  f->open_array_section("blacklist");
+  f->open_object_section("blacklist");
   for (ceph::unordered_map<entity_addr_t,utime_t>::const_iterator p = blacklist.begin();
        p != blacklist.end();
        ++p) {