]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc: with_osdmap should be const
authorAdam Emerson <aemerson@redhat.com>
Tue, 29 Aug 2023 22:13:35 +0000 (18:13 -0400)
committerAdam Emerson <aemerson@redhat.com>
Thu, 14 Sep 2023 21:48:00 +0000 (17:48 -0400)
Signed-off-by: Adam Emerson <aemerson@redhat.com>
src/osdc/Objecter.h

index b9f1e538aba2f12aba9548d8c2e7f8e67ad847bd..28f5ef13caeca804f14a91a8b3a05e5ba4ec34b3 100644 (file)
@@ -2690,7 +2690,7 @@ private:
   // here or you will have great woe and misery.
 
   template<typename Callback, typename...Args>
-  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<Callback>(cb)(*osdmap, std::forward<Args>(args)...);
   }