]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/.../shard_services.cc: pass by reference from do_with 57281/head
authorSamuel Just <sjust@redhat.com>
Wed, 21 Feb 2024 00:43:16 +0000 (16:43 -0800)
committerMatan Breizman <mbreizma@redhat.com>
Mon, 6 May 2024 12:03:56 +0000 (15:03 +0300)
commit205f968dad8bc138e6377d59f52f5572a6f6ae88
treebbf9ac19230abea1ed6b89130a0f5c57205eebf5
parentc67354bf364f122751153aa2af2f671dee38509a
crimson/.../shard_services.cc: pass by reference from do_with

Capturing the value passed by do_with by value causes later captures
by reference to be invalid past the lifetime of the lambda frame.

Fixes: https://tracker.ceph.com/issues/64513
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit e03495dca75be80f642453782ab7793c3c72712e)
src/crimson/osd/shard_services.cc