From 997da9ebcc84cab552fd49428c31d3a3f5a862f2 Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Mon, 28 Sep 2015 18:55:10 +0200 Subject: Make it possible to select backend perm storage --- tools/compileconfig.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/compileconfig.py b/tools/compileconfig.py index cac1be6..568134f 100755 --- a/tools/compileconfig.py +++ b/tools/compileconfig.py @@ -226,9 +226,14 @@ def gen_config(nodename, config, localconfig): ]) ] + if "dbbackend" in localconfig: + plopconfig += [ + (Symbol("db_backend"), Symbol(localconfig["dbbackend"])), + ] + if nodetype in ("frontendnodes", "storagenodes"): plopconfig += [ - (Symbol("entry_root_path"), paths["db"] + "certentries/"), + (Symbol("entry_root_path"), paths["db"] + "certentries"), ] if nodetype == "frontendnodes": plopconfig += [ @@ -241,8 +246,8 @@ def gen_config(nodename, config, localconfig): ] if nodetype in ("frontendnodes", "storagenodes"): plopconfig += [ - (Symbol("entryhash_root_path"), paths["db"] + "entryhash/"), - (Symbol("indexforhash_root_path"), paths["db"] + "certindex/"), + (Symbol("entryhash_root_path"), paths["db"] + "entryhash"), + (Symbol("indexforhash_root_path"), paths["db"] + "certindex"), ] if nodetype == "frontendnodes": plopconfig += [ @@ -260,7 +265,7 @@ def gen_config(nodename, config, localconfig): plopconfig += [ (Symbol("verifiedsize_path"), paths["mergedb"] + "/verifiedsize"), (Symbol("index_path"), paths["mergedb"] + "/logorder"), - (Symbol("entry_root_path"), paths["mergedb"] + "/chains/"), + (Symbol("entry_root_path"), paths["mergedb"] + "/chains"), ] signingnodes = config["signingnodes"] -- cgit v1.1