From: chunmei-liu Date: Tue, 1 Mar 2022 01:22:23 +0000 (-0800) Subject: crimson/seastore: fix bad_alloc X-Git-Tag: v18.0.0~1322^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=3ffe2517a9c065c16e1b8c0fea0cd2f37071905f;p=ceph.git crimson/seastore: fix bad_alloc Signed-off-by: chunmei-liu Signed-off-by: Samuel Just --- diff --git a/src/crimson/os/seastore/seastore.cc b/src/crimson/os/seastore/seastore.cc index cf6743457fffd..ea6fdde8cf1e1 100644 --- a/src/crimson/os/seastore/seastore.cc +++ b/src/crimson/os/seastore/seastore.cc @@ -522,13 +522,14 @@ SeaStore::read_errorator::future SeaStore::read( SeaStore::read_errorator::future SeaStore::readv( CollectionRef ch, - const ghobject_t& oid, + const ghobject_t& _oid, interval_set& m, uint32_t op_flags) { return seastar::do_with( + _oid, ceph::bufferlist{}, - [=, &oid, &m](auto &ret) { + [=, &m](auto &oid, auto &ret) { return crimson::do_for_each( m, [=, &oid, &ret](auto &p) {