From: Radoslaw Zarzynski Date: Tue, 21 Apr 2020 18:40:20 +0000 (+0200) Subject: crimson/osd: fix missed ref in ShardServices::send_pg_temp(). X-Git-Tag: v17.0.0~2514^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=eee9eed2bc9b3bf6c13e080280fd84a36ea0e45f;p=ceph.git crimson/osd: fix missed ref in ShardServices::send_pg_temp(). Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/crimson/osd/shard_services.cc b/src/crimson/osd/shard_services.cc index fc81ecb020757..7aa8ede6beddf 100644 --- a/src/crimson/osd/shard_services.cc +++ b/src/crimson/osd/shard_services.cc @@ -197,7 +197,7 @@ seastar::future<> ShardServices::send_pg_temp() logger().debug("{}: {}", __func__, pg_temp_wanted); boost::intrusive_ptr ms[2] = {nullptr, nullptr}; for (auto& [pgid, pg_temp] : pg_temp_wanted) { - auto m = ms[pg_temp.forced]; + auto& m = ms[pg_temp.forced]; if (!m) { m = make_message(osdmap->get_epoch()); m->forced = pg_temp.forced;