]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/alienstore/alien_store.cc: don't pre-size array to max
authorSamuel Just <sjust@redhat.com>
Mon, 18 Sep 2023 20:57:21 +0000 (13:57 -0700)
committerSamuel Just <sjust@redhat.com>
Mon, 11 Dec 2023 04:10:17 +0000 (04:10 +0000)
Scrub wants to be able to pass numeric_limits::max() as limit
since we've already selected bounds based on the number of objects.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/alienstore/alien_store.cc

index 61f23de977115daf464a5f38f152bd7038d6022d..593716df3519c3f0ad67c4c277ead22eeef59a89 100644 (file)
@@ -202,7 +202,6 @@ AlienStore::list_objects(CollectionRef ch,
   assert(tp);
   return do_with_op_gate(std::vector<ghobject_t>(), ghobject_t(),
                          [=, this] (auto &objects, auto &next) {
-    objects.reserve(limit);
     return tp->submit(ch->get_cid().hash_to_shard(tp->size()),
       [=, this, &objects, &next] {
       auto c = static_cast<AlienCollection*>(ch.get());