]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/common/interruptible_future: pass lambdas to seastar::repeat as mutable,...
authorSamuel Just <sjust@redhat.com>
Mon, 18 Sep 2023 18:49:29 +0000 (11:49 -0700)
committerSamuel Just <sjust@redhat.com>
Mon, 11 Dec 2023 04:10:17 +0000 (04:10 +0000)
commit74d606549785c4073e6b6e2c599f4bfeb2002de7
tree41d051acf4ad3b616e55f72dfd7fc60e9314a9b2
parent83cb1c730a8ad08796b6f36a10673faf3b8bcad2
crimson/common/interruptible_future: pass lambdas to seastar::repeat as mutable, don't move action

The lambda passed to seastar::repeat will be invoked multiple times,
don't pass an rvalue ref to call_with_interruption.  Also, declare
lambda as mutable in case action needs to be mutable.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/common/interruptible_future.h