mirror of
https://github.com/ceph/ceph
synced 2025-01-03 09:32:43 +00:00
crimson/os/seastore: use structured binding
for better readability Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
9370ac9fa8
commit
ca48d1cbdb
@ -48,13 +48,9 @@ CollectionNode::list()
|
||||
{
|
||||
read_to_local();
|
||||
logger().debug("CollectionNode:{}, {}", __func__, *this);
|
||||
std::vector<std::pair<coll_t, coll_info_t>> list_result;
|
||||
for (auto &&it : decoded) {
|
||||
list_result.emplace_back(
|
||||
std::make_pair(
|
||||
static_cast<coll_t>(it.first),
|
||||
coll_info_t{ it.second }
|
||||
));
|
||||
CollectionManager::list_ret_bare list_result;
|
||||
for (auto &[coll, bits] : decoded) {
|
||||
list_result.emplace_back(coll, bits);
|
||||
}
|
||||
return list_ret(
|
||||
list_ertr::ready_future_marker{},
|
||||
|
Loading…
Reference in New Issue
Block a user