From 989c4d826e6264656fb680e8f8324eddd2c0360c Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Tue, 20 Oct 2020 14:06:20 +0300 Subject: [PATCH] os/bluestore-tool: proceed after failing allocator's stats query. Some bluestore volumesmight be missing, proceed allocator stats inquiries for the remaining. Signed-off-by: Igor Fedotov --- src/os/bluestore/bluestore_tool.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/os/bluestore/bluestore_tool.cc b/src/os/bluestore/bluestore_tool.cc index 588c5a4e6f308..b9cff81248a02 100644 --- a/src/os/bluestore/bluestore_tool.cc +++ b/src/os/bluestore/bluestore_tool.cc @@ -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(); -- 2.39.5