]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/osd/osd_operations/snaptrim_event: introduce process_and_submit
authorMatan Breizman <mbreizma@redhat.com>
Mon, 26 Aug 2024 10:07:36 +0000 (10:07 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Mon, 9 Sep 2024 09:38:08 +0000 (09:38 +0000)
commit38bd4e7c5c3465ca7fd3a06203e9b72ba114761c
tree6e51d988ed96655bda2c325b6905e07e7f715d0e
parentdbf7425c89e6ae854e3fd47b5e05eaf076ba6245
crimson/osd/osd_operations/snaptrim_event: introduce process_and_submit

We should be carful with using capturing lambdas with coroutines.
Avoid capturing [this] by passing process_and_submit instead.

See: https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rcoro-capture

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/osd/osd_operations/snaptrim_event.cc
src/crimson/osd/osd_operations/snaptrim_event.h