Permalink
Browse files

Merge pull request #838 from basho/dr-iterator-move-using-wrapper

Always use the wrapped iterator_move [JIRA: RIAK-2566]

Reviewed-by: zeeshanlakhani
  • Loading branch information...
borshop committed May 18, 2016
2 parents 035eeb7 + 5bcbb48 commit 36f2e65488e225bfe5c4998cc924b6fa44434e7e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/hashtree.erl
View
@@ -958,7 +958,7 @@ multi_select_segment(#state{id=Id, itr=Itr}, Segments, F) ->
%% Always call prefetch stop to ensure the iterator
%% is safe to use in the compare. Requires
%% eleveldb > 2.0.16 or this may segv/hang.
_ = eleveldb:iterator_move(Itr, prefetch_stop)
_ = iterator_move(Itr, prefetch_stop)
end,
#itr_state{remaining_segments = LeftOver,
current_segment=LastSegment,

0 comments on commit 36f2e65

Please sign in to comment.