summaryrefslogtreecommitdiff
path: root/src/db.erl
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2014-11-18 16:45:18 +0100
committerMagnus Ahltorp <map@kth.se>2014-11-19 05:03:19 +0100
commit41412486d1b128057e453ac94c675a83a2f3e1b4 (patch)
treeea039de453dda0921567a6a58585429c7878ef91 /src/db.erl
parent4c4f904ee1a7fe2b61137532de3668ba5ad3a6d8 (diff)
Move db size check from db.erl to plop.erl to allow reads past db size.
Diffstat (limited to 'src/db.erl')
-rw-r--r--src/db.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.erl b/src/db.erl
index 1c5c21f..526b639 100644
--- a/src/db.erl
+++ b/src/db.erl
@@ -163,7 +163,7 @@ leafhash_for_entryhash(EntryHash) ->
get_by_indices_helper(Start, _End) when Start < 0 ->
[];
get_by_indices_helper(Start, End) ->
- EndBound = min(End, size() - 1),
+ EndBound = min(End, indexsize() - 1),
case Start =< EndBound of
true ->
lists:map(fun ({LeafHash, Index}) ->