Skip to content

Commit e03495d

Browse files
committed
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 <[email protected]>
1 parent 4d430f6 commit e03495d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crimson/osd/shard_services.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ seastar::future<MURef<MOSDMap>> OSDSingletonState::build_incremental_map_msg(
808808
crimson::make_message<MOSDMap>(
809809
monc.get_fsid(),
810810
osdmap->get_encoding_features()),
811-
[this, &first, FNAME, last](unsigned int map_message_max,
811+
[this, &first, FNAME, last](auto &map_message_max,
812812
auto &m) {
813813
m->cluster_osdmap_trim_lower_bound = superblock.cluster_osdmap_trim_lower_bound;
814814
m->newest_map = superblock.get_newest_map();

0 commit comments

Comments
 (0)