summaryrefslogtreecommitdiffstats
path: root/src/crimson/os/alienstore/alien_store.cc
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2021-06-29 06:01:20 +0200
committerKefu Chai <kchai@redhat.com>2021-06-29 13:27:25 +0200
commitaa3f2028c15aff2dbe1af99e2d899bdc373701a2 (patch)
tree6e2c2d498959723af69ccfd9e03070402dbb9289 /src/crimson/os/alienstore/alien_store.cc
parentos: use transparent comparator in ObjectStore::getattrs() (diff)
downloadceph-aa3f2028c15aff2dbe1af99e2d899bdc373701a2.tar.xz
ceph-aa3f2028c15aff2dbe1af99e2d899bdc373701a2.zip
crimson/os/alienstore: return attrs retrieved from bluestore directly
since ObjectStore returns a map<...,less<>> already, there is not point to convert the returned map to the type expected by AlienStore. Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/crimson/os/alienstore/alien_store.cc')
-rw-r--r--src/crimson/os/alienstore/alien_store.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/crimson/os/alienstore/alien_store.cc b/src/crimson/os/alienstore/alien_store.cc
index aa9758147df..091e438466c 100644
--- a/src/crimson/os/alienstore/alien_store.cc
+++ b/src/crimson/os/alienstore/alien_store.cc
@@ -338,13 +338,7 @@ AlienStore::get_attrs(CollectionRef ch,
return seastar::do_with(attrs_t{}, [=] (auto &aset) {
return tp->submit(ch->get_cid().hash_to_shard(tp->size()), [=, &aset] {
auto c = static_cast<AlienCollection*>(ch.get());
- std::map<std::string, ceph::bufferptr> blueaset;
- const auto r = store->getattrs(c->collection, oid, blueaset);
- for (auto& [bluekey, blueval] : blueaset) {
- ceph::bufferlist bl;
- bl.push_back(std::move(blueval));
- aset.emplace(std::move(bluekey), std::move(bl));
- }
+ const auto r = store->getattrs(c->collection, oid, aset);
return r;
}).then([&aset] (int r) -> get_attrs_ertr::future<attrs_t> {
if (r == -ENOENT) {