]> 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>
Wed, 13 May 2015 20:09:13 +0000 (13:09 -0700)
Signed-off-by: John Spray <john.spray@redhat.com>
src/tools/ceph_objectstore_tool.cc

index 8ead78134e5a67b1a00403a549fff486bb60d4ed..1f3037e33d3282149f9dcad742a96be93d442c34 100644 (file)
@@ -1525,6 +1525,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;
     }
   }
@@ -1650,6 +1651,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;
   }
 
@@ -1911,6 +1913,7 @@ int do_import(ObjectStore *store, OSDSuperblock& sb, bool force)
       done = true;
       break;
     default:
+      cerr << "Unknown section type " << type << std::endl;
       return -EFAULT;
     }
   }