]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools: refactor std::tie with structured binding in COT 60890/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 12 Feb 2025 15:10:30 +0000 (15:10 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Fri, 4 Apr 2025 18:21:55 +0000 (18:21 +0000)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/tools/ceph_objectstore_tool.cc

index f6d4c033fd3991243567c4815a6e09088cada6c1..81b86a0767eeca28a9205116efe046aceefc5c49 100644 (file)
@@ -376,12 +376,7 @@ struct lookup_slow_ghobject : public action_on_object_t {
         i != _objects.end();
         ++i) {
       f->open_array_section("object");
-      coll_t coll;
-      ghobject_t ghobj;
-      ceph::signedspan first_seek_time;
-      ceph::signedspan last_seek_time;
-      ceph::signedspan total_time;
-      std::tie(coll, ghobj, first_seek_time, last_seek_time, total_time) = *i;
+      auto [coll, ghobj, first_seek_time, last_seek_time, total_time] = *i;
 
       spg_t pgid;
       bool is_pg = coll.is_pg(&pgid);