Commit 4d8ec7dd authored by Philip Carns's avatar Philip Carns

disable vring support by default

- not present in stock ceph build
parent 294f06ab
......@@ -11,6 +11,9 @@
#include <ch-placement.h>
#include <builder.h>
/* define to enable support for experimental CRUSH VRING bucket type */
#undef CH_ENABLE_CRUSH_VRING
/* special case initialization for using a crush map instead of one of the
* build in modules. Requires that the crush map (complete with rule 0)
* be constructed externally and passed in.
......
......@@ -82,8 +82,12 @@ static int setup_crush(struct options *ig_opts,
*map = crush_create();
assert(*map);
if(strcmp(ig_opts->placement, "crush-vring") == 0)
#ifdef CH_ENABLE_CRUSH_VRING
bucket = crush_make_bucket(*map, CRUSH_BUCKET_VRING, CRUSH_HASH_DEFAULT, 1,
ig_opts->num_servers, items, weights);
#else
assert(0);
#endif
else
bucket = crush_make_bucket(*map, CRUSH_BUCKET_STRAW, CRUSH_HASH_DEFAULT, 1,
ig_opts->num_servers, items, weights);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment