summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-11-19 15:37:44 +0100
committerMagnus Ahltorp <map@kth.se>2015-11-19 15:37:44 +0100
commit0e3359017ce8019704984bf232e6916badedbebe (patch)
tree286d910aac480dd6ff89a00b583e8c13656f7793
parentb30199902dba22d6191a2eaa719957ee0e76bbff (diff)
Make check_entries chunk size configurable and bump default to 1000permdb2
-rw-r--r--src/frontend.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frontend.erl b/src/frontend.erl
index 6ce31b0..8fa4f58 100644
--- a/src/frontend.erl
+++ b/src/frontend.erl
@@ -201,7 +201,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 ->