]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: fix asok hook return value
authorSage Weil <sage@redhat.com>
Fri, 13 Sep 2019 15:22:14 +0000 (10:22 -0500)
committerSage Weil <sage@redhat.com>
Fri, 4 Oct 2019 14:07:02 +0000 (09:07 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/Allocator.cc

index 7ec94186c5a5b530a379ea3faa494921f05bdabc..341ea021c01832ea2cf73b2ce2310d364511d9c6 100644 (file)
@@ -53,7 +53,7 @@ public:
   int call(std::string_view command, const cmdmap_t& cmdmap,
           std::string_view format, bufferlist& out) override {
     stringstream ss;
-    bool r = 0;
+    int r = 0;
     if (command == "bluestore allocator dump " + name) {
       Formatter *f = Formatter::create(format, "json-pretty", "json-pretty");
       f->open_array_section("free_regions");