From: Sage Weil Date: Sat, 7 Dec 2013 00:18:04 +0000 (-0800) Subject: crush/CrushCompiler: start with legacy tunables when compiling X-Git-Tag: v0.74~20^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4eb8891d8d390f201242eddfd41574d19dc7ae63;p=ceph.git crush/CrushCompiler: start with legacy tunables when compiling Ensure that a crush file always compiled deterministically, even though the default values for *new* maps has changed. Signed-off-by: Sage Weil --- diff --git a/src/crush/CrushCompiler.cc b/src/crush/CrushCompiler.cc index 5f92bf7e4ecd..43ff2b1e8af6 100644 --- a/src/crush/CrushCompiler.cc +++ b/src/crush/CrushCompiler.cc @@ -728,6 +728,10 @@ int CrushCompiler::compile(istream& in, const char *infn) if (!infn) infn = ""; + // always start with legacy tunables, so that the compiled result of + // a given crush file is fixed for all time. + crush.set_tunables_legacy(); + string big; string str; int line = 1;