summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-11-19 15:37:44 +0100
committerLinus Nordberg <linus@nordu.net>2015-12-09 14:46:37 +0100
commitfb78a6a883ad7b45c7a0dc8dc550469eaff1e1a0 (patch)
tree37f56a2309d57f2cbc8b1a17041259d9c31fcd7a
parent71baee406c023a833b97f2c8e62c2648009dca68 (diff)
Make check_entries chunk size configurable and bump default to 1000
-rw-r--r--src/frontend.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frontend.erl b/src/frontend.erl
index 707af0c..04e307c 100644
--- a/src/frontend.erl
+++ b/src/frontend.erl
@@ -204,7 +204,7 @@ check_entries(Treesize) ->
check_entries_chunked(Start, End) ->
lager:debug("Checking entries ~p-~p", [Start, End]),
- Chunksize = 1,
+ Chunksize = application:get_env(plop, check_entries_chunksize, 1000),
PartialEnd = min(Start + Chunksize - 1, End),
case check_entries_onechunk(Start, PartialEnd) of
[] when PartialEnd == End ->