]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-objectstore-tool: Add a couple of strategically placed prints
authorJohn Spray <john.spray@redhat.com>
Mon, 20 Apr 2015 16:28:15 +0000 (17:28 +0100)
committerDavid Zafman <dzafman@redhat.com>
Thu, 25 Feb 2016 20:50:21 +0000 (12:50 -0800)
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit fdb1a4b676765c5d3ca5d436f34230dd6996d7a7)

src/tools/ceph_objectstore_tool.cc

index 6edec1c6c43416e99cd222da3d036237962168ee..d22f4e39f97392c48747c6ef3fe0ef04aa59a8ed 100644 (file)
@@ -1524,6 +1524,7 @@ int get_object(ObjectStore *store, coll_t coll, bufferlist &bl, OSDMap &curmap)
       done = true;
       break;
     default:
+      cerr << "Unknown section type " << type << std::endl;
       return -EFAULT;
     }
   }
@@ -1649,6 +1650,7 @@ int do_import_rados(string pool)
   if (ret)
     return ret;
   if (type != TYPE_PG_BEGIN) {
+    cerr << "Invalid first section type " << type << std::endl;
     return -EFAULT;
   }
 
@@ -1910,6 +1912,7 @@ int do_import(ObjectStore *store, OSDSuperblock& sb, bool force)
       done = true;
       break;
     default:
+      cerr << "Unknown section type " << type << std::endl;
       return -EFAULT;
     }
   }