From: John Spray Date: Fri, 23 Sep 2016 13:46:54 +0000 (+0100) Subject: mgr: fixup ClusterState with_*map fns X-Git-Tag: v11.0.1~60^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=45b33934e878908332c9fee239b47db7657302ee;p=ceph.git mgr: fixup ClusterState with_*map fns Signed-off-by: John Spray --- diff --git a/src/mgr/ClusterState.h b/src/mgr/ClusterState.h index c63ca27604c4..039da14e8dc7 100644 --- a/src/mgr/ClusterState.h +++ b/src/mgr/ClusterState.h @@ -87,20 +87,21 @@ public: std::forward(args)...); } - template - void with_monmap(Callback&& cb, Args&&...args) + template + void with_monmap(Args &&... args) { Mutex::Locker l(lock); assert(monc != nullptr); - monc->with_monmap(cb); + monc->with_monmap(std::forward(args)...); } - template - void with_osdmap(Callback&& cb, Args&&...args) + template + void with_osdmap(Args &&... args) { assert(objecter != nullptr); - objecter->with_osdmap(cb); + objecter->with_osdmap(std::forward(args)...); } + }; #endif