summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2015-11-17 15:42:05 +0100
committerLinus Nordberg <linus@nordu.net>2016-02-01 11:40:25 +0100
commit9f723f6f1d79c1be460ece10555945346045b175 (patch)
tree822db37633ab2334df58d42c3c41bc2fecc65ebc
parent46b997342a7b6ee592357730f39dd9b3f2ca3ae4 (diff)
Add support for option 'max_submit_size' to compileconfig.py.
-rw-r--r--test/catlfish-test-local-1.cfg1
-rwxr-xr-xtools/compileconfig.py4
2 files changed, 5 insertions, 0 deletions
diff --git a/test/catlfish-test-local-1.cfg b/test/catlfish-test-local-1.cfg
index cbe04d8..fbd7e4b 100644
--- a/test/catlfish-test-local-1.cfg
+++ b/test/catlfish-test-local-1.cfg
@@ -29,3 +29,4 @@ ratelimits:
#options:
# - sctcaching
+# - max_submit_size: 1048576
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))