From aa472fa4df19d826a5af72e286365fa5ce4c71fb Mon Sep 17 00:00:00 2001 From: David Zafman Date: Mon, 15 Dec 2014 10:03:53 -0800 Subject: [PATCH] ceph_objectstore_tool: Add special exit code for test infrastructure Signed-off-by: David Zafman (cherry picked from commit b1f12f09c0211b608178f5ca2e292ab1765ce620) --- src/tools/ceph_objectstore_tool.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index bc98b615c16d8..52f1dc10374a4 100644 --- a/src/tools/ceph_objectstore_tool.cc +++ b/src/tools/ceph_objectstore_tool.cc @@ -1617,7 +1617,8 @@ int do_import(ObjectStore *store, OSDSuperblock& sb) } if (!curmap.have_pg_pool(pgid.pgid.m_pool)) { cerr << "Pool " << pgid.pgid.m_pool << " no longer exists" << std::endl; - return 1; + // Special exit code for this error, used by test code + return 10; } log_oid = OSD::make_pg_log_oid(pgid); @@ -2944,5 +2945,5 @@ out: return 1; } - return (ret != 0); + return ret; } -- 2.39.5