summaryrefslogtreecommitdiff
path: root/tools/compileconfig.py
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-09-28 18:55:10 +0200
committerLinus Nordberg <linus@nordu.net>2015-11-11 14:01:50 +0100
commit997da9ebcc84cab552fd49428c31d3a3f5a862f2 (patch)
tree5c8ecb073e5cf90600b1bfe1db9f9441cead5627 /tools/compileconfig.py
parent486228c958076a60891380884900540df7b034d8 (diff)
Make it possible to select backend perm storage
Diffstat (limited to 'tools/compileconfig.py')
-rwxr-xr-xtools/compileconfig.py13
1 files changed, 9 insertions, 4 deletions
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"]