From: Sage Weil Date: Mon, 24 Apr 2017 22:49:20 +0000 (-0400) Subject: crush: templatize weights arg for do_rule X-Git-Tag: v12.0.3~234^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5a1a4051f17ba733c5c106543a2e6c77dfae908b;p=ceph.git crush: templatize weights arg for do_rule Signed-off-by: Sage Weil --- diff --git a/src/crush/CrushWrapper.h b/src/crush/CrushWrapper.h index 3d829954d777..54fd572f8cc4 100644 --- a/src/crush/CrushWrapper.h +++ b/src/crush/CrushWrapper.h @@ -1208,8 +1208,9 @@ public: choose_args.clear(); } + template void do_rule(int rule, int x, vector& out, int maxout, - const vector<__u32>& weight, + const WeightVector& weight, uint64_t choose_args_index) const { int rawout[maxout]; char work[crush_work_size(crush, maxout)];