aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/src
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2011-03-09 12:01:59 +0100
committerDan Gudmundsson <[email protected]>2011-03-09 12:01:59 +0100
commitb42fe05f759054baf8eaf7796500de1aea47ba70 (patch)
tree74bc84edaf07b320ea30563ebc46d3c499b53631 /lib/mnesia/src
parent5a4f4654c243092362949e83033df183a513cf4c (diff)
parent6a486ff2dfa285e913a1d0b013c2165c9a5a7b42 (diff)
downloadotp-b42fe05f759054baf8eaf7796500de1aea47ba70.tar.gz
otp-b42fe05f759054baf8eaf7796500de1aea47ba70.tar.bz2
otp-b42fe05f759054baf8eaf7796500de1aea47ba70.zip
Merge branch 'dgud/mnesia/frag_first/OTP-9108' into dev
Diffstat (limited to 'lib/mnesia/src')
-rw-r--r--lib/mnesia/src/mnesia_frag.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mnesia/src/mnesia_frag.erl b/lib/mnesia/src/mnesia_frag.erl
index 6cc16c80fd..9e77fe0b9f 100644
--- a/lib/mnesia/src/mnesia_frag.erl
+++ b/lib/mnesia/src/mnesia_frag.erl
@@ -209,7 +209,7 @@ first(ActivityId, Opaque, Tab) ->
end
end.
-search_first(ActivityId, Opaque, Tab, N, FH) when N =< FH#frag_state.n_fragments ->
+search_first(ActivityId, Opaque, Tab, N, FH) when N < FH#frag_state.n_fragments ->
NextN = N + 1,
NextFrag = n_to_frag_name(Tab, NextN),
case mnesia:first(ActivityId, Opaque, NextFrag) of