From a7757085c040771cf5a0116014da0553a59e94b8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 31 May 2018 08:38:08 -0500 Subject: [PATCH] ceph-objectstore-tool: debug intervals update Signed-off-by: Sage Weil --- src/tools/ceph_objectstore_tool.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index ce8b6f086be08..7a1b511f0bda1 100644 --- a/src/tools/ceph_objectstore_tool.cc +++ b/src/tools/ceph_objectstore_tool.cc @@ -1466,7 +1466,10 @@ int get_pg_metadata(ObjectStore *store, bufferlist &bl, metadata_section &ms, vector up, acting; lastmap->pg_to_up_acting_osds( ms.info.pgid.pgid, &up, &up_primary, &acting, &acting_primary); - + cerr << "initial e" << lastmap->get_epoch() + << " up " << up << "/" << up_primary + << " acting " << acting << "/" << acting_primary + << std::endl; while (ms.map_epoch < sb.current_epoch) { ++ms.map_epoch; if (ms.map_epoch < sb.oldest_map) { @@ -1489,6 +1492,11 @@ int get_pg_metadata(ObjectStore *store, bufferlist &bl, metadata_section &ms, ms.info.pgid.pgid, &new_up, &new_up_primary, &new_acting, &new_acting_primary); + cerr << "e" << nextmap->get_epoch() + << " up " << up << "/" << up_primary + << " acting " << acting << "/" << acting_primary + << std::endl; + // this is a bit imprecise, but sufficient? struct min_size_predicate_t : public IsPGRecoverablePredicate { const pg_pool_t *pi; -- 2.39.5