From: Igor Fedotov Date: Tue, 20 Oct 2020 11:06:20 +0000 (+0300) Subject: os/bluestore-tool: proceed after failing allocator's stats query. X-Git-Tag: v17.1.0~2023^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=989c4d826e6264656fb680e8f8324eddd2c0360c;p=ceph.git 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 --- diff --git a/src/os/bluestore/bluestore_tool.cc b/src/os/bluestore/bluestore_tool.cc index 588c5a4e6f30..b9cff81248a0 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();