]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore-tool: proceed after failing allocator's stats query.
authorIgor Fedotov <ifedotov@suse.com>
Tue, 20 Oct 2020 11:06:20 +0000 (14:06 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Tue, 20 Oct 2020 11:16:15 +0000 (14:16 +0300)
Some bluestore volumesmight be missing, proceed allocator stats inquiries for the remaining.

Signed-off-by: Igor Fedotov <ifdotov@suse.com>
src/os/bluestore/bluestore_tool.cc

index 588c5a4e6f308944331823dca2deb7e56212b9ec..b9cff81248a029c853e86ba09b563baaa06f697b 100644 (file)
@@ -873,10 +873,10 @@ int main(int argc, char **argv)
        in, err, &out);
       if (r != 0) {
         cerr << "failure querying '" << alloc_name << "'" << std::endl;
-        exit(EXIT_FAILURE);
+      } else {
+        cout << alloc_name << ":" << std::endl;
+        cout << std::string(out.c_str(),out.length()) << std::endl;
       }
-      cout << alloc_name << ":" << std::endl;
-      cout << std::string(out.c_str(),out.length()) << std::endl;
     }
 
     bluestore.cold_close();