summaryrefslogtreecommitdiff
path: root/tools/compileconfig.py
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2015-11-17 15:42:05 +0100
committerLinus Nordberg <linus@nordu.net>2015-11-17 15:50:11 +0100
commit849203a8baa4e79c39e664ba565819a885ff8713 (patch)
treede5599697cacb78248a22e9a6a8b415240522a41 /tools/compileconfig.py
parente3327983894a118d893954125e5d5347dd075337 (diff)
Add support for option 'max_submit_size' to compileconfig.py.gaol4
Diffstat (limited to 'tools/compileconfig.py')
-rwxr-xr-xtools/compileconfig.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/compileconfig.py b/tools/compileconfig.py
index df43365..e747fad 100755
--- a/tools/compileconfig.py
+++ b/tools/compileconfig.py
@@ -214,6 +214,10 @@ def gen_config(nodename, config, localconfig):
if "frontendnodes" in nodetype:
if "sctcaching" in options:
catlfishconfig.append((Symbol("sctcache_root_path"), paths["db"] + "sctcache/"))
+ opt = filter(lambda e: "max_submit_size" in e, options)
+ if len(opt) > 0:
+ max_submit_size = opt[0]["max_submit_size"] # Ignore all but first.
+ catlfishconfig.append((Symbol("max_submit_size"), max_submit_size))
if "ratelimits" in localconfig:
ratelimits = map(parse_ratelimit, localconfig["ratelimits"].items())
catlfishconfig.append((Symbol("ratelimits"), ratelimits))