summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max.kellermann@ionos.com>2024-10-04 11:41:12 +0200
committerMax Kellermann <max.kellermann@ionos.com>2024-11-13 21:00:29 +0100
commit84f87afd61e2089fa0efde5c39682cf10927fa88 (patch)
tree893d099a00c7a3a30e063193f5db50d9d54f2f06
parentosd: disable `boost::intrusive::constant_time_size` (diff)
downloadceph-84f87afd61e2089fa0efde5c39682cf10927fa88.tar.xz
ceph-84f87afd61e2089fa0efde5c39682cf10927fa88.zip
osdc/Objecter: use the erase() return value
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
-rw-r--r--src/osdc/Objecter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osdc/Objecter.cc b/src/osdc/Objecter.cc
index 087b623333b..82d43bb3dde 100644
--- a/src/osdc/Objecter.cc
+++ b/src/osdc/Objecter.cc
@@ -1393,7 +1393,7 @@ void Objecter::handle_osd_map(MOSDMap *m)
for (auto& [c, ec] : p->second) {
asio::post(service.get_executor(), asio::append(std::move(c), ec));
}
- waiting_for_map.erase(p++);
+ p = waiting_for_map.erase(p);
}
monc->sub_got("osdmap", osdmap->get_epoch());