]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_objectstore_tool: Add special exit code for test infrastructure
authorDavid Zafman <dzafman@redhat.com>
Mon, 15 Dec 2014 18:03:53 +0000 (10:03 -0800)
committerDavid Zafman <dzafman@redhat.com>
Tue, 3 Mar 2015 19:20:59 +0000 (11:20 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit b1f12f09c0211b608178f5ca2e292ab1765ce620)

src/tools/ceph_objectstore_tool.cc

index bc98b615c16d8dc60e7c88ee50e1275365cf282b..52f1dc10374a4d21f252c4274529a16b693fe695 100644 (file)
@@ -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;
 }