]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr: fixup ClusterState with_*map fns
authorJohn Spray <john.spray@redhat.com>
Fri, 23 Sep 2016 13:46:54 +0000 (14:46 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 29 Sep 2016 16:27:06 +0000 (17:27 +0100)
Signed-off-by: John Spray <john.spray@redhat.com>
src/mgr/ClusterState.h

index c63ca27604c42a04c36bba48f9e2340646356109..039da14e8dc7e45ee7f90cecbe625b2e0871d16f 100644 (file)
@@ -87,20 +87,21 @@ public:
         std::forward<Args>(args)...);
   }
 
-  template<typename Callback, typename...Args>
-  void with_monmap(Callback&& cb, Args&&...args)
+  template<typename... Args>
+  void with_monmap(Args &&... args)
   {
     Mutex::Locker l(lock);
     assert(monc != nullptr);
-    monc->with_monmap(cb);
+    monc->with_monmap(std::forward<Args>(args)...);
   }
 
-  template<typename Callback, typename...Args>
-  void with_osdmap(Callback&& cb, Args&&...args)
+  template<typename... Args>
+  void with_osdmap(Args &&... args)
   {
     assert(objecter != nullptr);
-    objecter->with_osdmap(cb);
+    objecter->with_osdmap(std::forward<Args>(args)...);
   }
+
 };
 
 #endif