summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-09-28 18:55:10 +0200
committerMagnus Ahltorp <map@kth.se>2015-09-28 18:55:10 +0200
commit3f8f72b59d65b2bcd1b63589b6ad1eda486c0d63 (patch)
tree1eb057b614bb91c14bf73c3d1a68d34637df1604
parent8949606c5c8e4eac53b16ecab03011a884e8c5ac (diff)
Make it possible to select backend perm storage
-rwxr-xr-xtools/compileconfig.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/tools/compileconfig.py b/tools/compileconfig.py
index 552f3b8..272b8f2 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"]