]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/cot: don't print tail_key during list-slow-omap
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 28 Nov 2024 19:02:30 +0000 (19:02 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Fri, 4 Apr 2025 18:21:54 +0000 (18:21 +0000)
`tail_key`, and even presence of some key designated to
be a gaaurd, seems to an impementation detail of
particular `ObjectStore`.

I doubt this piece of information is useful enough to
introduce a getter for it to the `ObjectStore` interface.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/tools/ceph_objectstore_tool.cc

index 9b880c4d360180927a64f7311ccc52b79b30906a..72197efc86fe94d5a9d69f0e5ea5490b1aa03479 100644 (file)
@@ -304,8 +304,7 @@ struct lookup_slow_ghobject : public action_on_object_t {
     ghobject_t,
     ceph::signedspan,
     ceph::signedspan,
-    ceph::signedspan,
-    string> > _objects;
+    ceph::signedspan> > _objects;
   const string _name;
   double threshold;
 
@@ -348,8 +347,7 @@ struct lookup_slow_ghobject : public action_on_object_t {
     total_time = mono_clock::now() - start1;
     if ( total_time >= make_timespan(threshold)) {
       _objects.emplace_back(coll, ghobj,
-       first_seek_time, last_seek_time, total_time,
-       url_escape(iter->tail_key()));
+       first_seek_time, last_seek_time, total_time);
       cerr << ">>>>>  found obj " << ghobj
           << " first_seek_time "
           << std::chrono::duration_cast<std::chrono::seconds>(first_seek_time).count()
@@ -357,7 +355,6 @@ struct lookup_slow_ghobject : public action_on_object_t {
           << std::chrono::duration_cast<std::chrono::seconds>(last_seek_time).count()
           << " total_time "
           << std::chrono::duration_cast<std::chrono::seconds>(total_time).count()
-          << " tail key: " << url_escape(iter->tail_key())
           << std::endl;
     }
     return;
@@ -379,8 +376,7 @@ struct lookup_slow_ghobject : public action_on_object_t {
       ceph::signedspan first_seek_time;
       ceph::signedspan last_seek_time;
       ceph::signedspan total_time;
-      string tail_key;
-      std::tie(coll, ghobj, first_seek_time, last_seek_time, total_time, tail_key) = *i;
+      std::tie(coll, ghobj, first_seek_time, last_seek_time, total_time) = *i;
 
       spg_t pgid;
       bool is_pg = coll.is_pg(&pgid);
@@ -397,7 +393,6 @@ struct lookup_slow_ghobject : public action_on_object_t {
          (last_seek_time).count());
       f->dump_int("total_time",
        std::chrono::duration_cast<std::chrono::seconds>(total_time).count());
-      f->dump_string("tail_key", tail_key);
       f->close_section();
 
       f->close_section();