Skip to content

Commit 65b67f4

Browse files
committed
tools: refactor std::tie with structured binding in COT
Signed-off-by: Radoslaw Zarzynski <[email protected]>
1 parent 0495943 commit 65b67f4

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/tools/ceph_objectstore_tool.cc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,7 @@ struct lookup_slow_ghobject : public action_on_object_t {
376376
i != _objects.end();
377377
++i) {
378378
f->open_array_section("object");
379-
coll_t coll;
380-
ghobject_t ghobj;
381-
ceph::signedspan first_seek_time;
382-
ceph::signedspan last_seek_time;
383-
ceph::signedspan total_time;
384-
std::tie(coll, ghobj, first_seek_time, last_seek_time, total_time) = *i;
379+
auto [coll, ghobj, first_seek_time, last_seek_time, total_time] = *i;
385380

386381
spg_t pgid;
387382
bool is_pg = coll.is_pg(&pgid);

0 commit comments

Comments
 (0)