From: Samuel Just Date: Tue, 14 Sep 2021 04:26:33 +0000 (-0700) Subject: crimson/os/seastore: SeaStore::get_omap_iterator should seek_to_first X-Git-Tag: v17.1.0~885^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6a1ed1fda9be3ba0430eebcf72aa437cdc59d4a8;p=ceph.git crimson/os/seastore: SeaStore::get_omap_iterator should seek_to_first Add debugging as well. Signed-off-by: Samuel Just --- diff --git a/src/crimson/os/seastore/seastore.cc b/src/crimson/os/seastore/seastore.cc index 295518d43645..1b3f166c0ed5 100644 --- a/src/crimson/os/seastore/seastore.cc +++ b/src/crimson/os/seastore/seastore.cc @@ -619,11 +619,17 @@ seastar::future SeaStore::get_omap_iterator( CollectionRef ch, const ghobject_t& oid) { - return seastar::make_ready_future( + LOG_PREFIX(SeaStore::get_omap_iterator); + DEBUG("oid: {}", oid); + auto ret = FuturizedStore::OmapIteratorRef( new SeaStoreOmapIterator( *this, ch, oid)); + return ret->seek_to_first( + ).then([ret]() mutable { + return std::move(ret); + }); } seastar::future> SeaStore::fiemap(