summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-08-20 22:44:43 -0700
committerSage Weil <sage@inktank.com>2013-08-21 21:55:10 -0700
commit9242d01cc007f44f5be4e7138e9019234e61d6fc (patch)
tree03c21da1df5a0f33eabc729eeaa89d9270db5d88
parent123f79bea8301aadbb11e8fd277af2e40102864f (diff)
downloadceph-9242d01cc007f44f5be4e7138e9019234e61d6fc.tar.gz
ceph-monstore-tool: shut up coverity
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/tools/ceph-monstore-tool.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/ceph-monstore-tool.cc b/src/tools/ceph-monstore-tool.cc
index 7d9ea628e9f..8f294c4a4e3 100644
--- a/src/tools/ceph-monstore-tool.cc
+++ b/src/tools/ceph-monstore-tool.cc
@@ -214,6 +214,7 @@ int main(int argc, char **argv) {
} else if (cmd == "compact") {
st.compact();
} else if (cmd == "getmonmap") {
+ assert(fd >= 0);
if (!store_path.size()) {
std::cerr << "need mon store path" << std::endl;
std::cerr << desc << std::endl;