summaryrefslogtreecommitdiff
path: root/tune-adbpi-parameters.sh
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2017-04-26 13:37:05 +0200
committerKali Kaneko <kali@leap.se>2017-07-07 21:25:13 +0200
commitdfa0eea0f2d4e0036ddadfbe0827848a4e188e84 (patch)
treeb57d4a1dc6e1e035c426326a0857e52311844d2a /tune-adbpi-parameters.sh
parent7b4e34edac12f94d05ace60bafc3cf753b77c3d3 (diff)
[benchmarks] Use script to tune adbapi parameters istead of cherry-pick.
Diffstat (limited to 'tune-adbpi-parameters.sh')
-rwxr-xr-xtune-adbpi-parameters.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tune-adbpi-parameters.sh b/tune-adbpi-parameters.sh
new file mode 100755
index 00000000..22408d86
--- /dev/null
+++ b/tune-adbpi-parameters.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+FILE=client/src/leap/soledad/client/adbapi.py
+
+if [ ! -f ${FILE} ]; then
+ exit 0
+fi
+
+sed -i -e "s/\(SQLCIPHER_MAX_RETRIES\) =.*/\1 = 100/" ${FILE}
+sed -i -e "s/\(SQLCIPHER_CONNECTION_TIMEOUT\) =.*/\1 = 100/" ${FILE}