]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-objectstore-tool: print pg_info_t to stdoutt
authorSage Weil <sage@redhat.com>
Sun, 17 Sep 2017 23:27:44 +0000 (18:27 -0500)
committerSage Weil <sage@redhat.com>
Fri, 6 Oct 2017 18:08:18 +0000 (13:08 -0500)
Helpful for debugging

Signed-off-by: Sage Weil <sage@redhat.com>
src/tools/ceph_objectstore_tool.cc

index b177e5dc063fe8a18e2014f7a8b5b25d39eaa6bb..cf4b4264395e7528057def4639bfdb58d2e394f1 100644 (file)
@@ -468,6 +468,7 @@ int write_pg(ObjectStore::Transaction &t, epoch_t epoch, pg_info_t &info,
             divergent_priors_t &divergent,
             pg_missing_t &missing)
 {
+  cout << __func__ << " info " << info << std::endl;
   int ret = write_info(t, epoch, info, past_intervals);
   if (ret)
     return ret;
@@ -754,7 +755,7 @@ int ObjectStoreTool::do_export(ObjectStore *fs, coll_t coll, spg_t pgid,
   PGLog::IndexedLog log;
   pg_missing_t missing;
 
-  cerr << "Exporting " << pgid << std::endl;
+  cerr << "Exporting " << pgid << " info " << info << std::endl;
 
   int ret = get_log(fs, struct_ver, coll, pgid, info, log, missing);
   if (ret > 0)