From: Adam Emerson Date: Tue, 29 Aug 2023 22:13:35 +0000 (-0400) Subject: osdc: with_osdmap should be const X-Git-Tag: v19.3.0~349^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0dd6486ca6e05a50f72321733685e74e62509db6;p=ceph.git osdc: with_osdmap should be const Signed-off-by: Adam Emerson --- diff --git a/src/osdc/Objecter.h b/src/osdc/Objecter.h index c54d87bace4..201b7b62d08 100644 --- a/src/osdc/Objecter.h +++ b/src/osdc/Objecter.h @@ -2710,7 +2710,7 @@ private: // here or you will have great woe and misery. template - decltype(auto) with_osdmap(Callback&& cb, Args&&... args) { + decltype(auto) with_osdmap(Callback&& cb, Args&&... args) const { std::shared_lock l(rwlock); return std::forward(cb)(*osdmap, std::forward(args)...); }