diff options
author | Hans Bolinder <[email protected]> | 2013-08-21 09:43:44 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2013-08-21 09:43:44 +0200 |
commit | 619f74597b36ed76826a76cc6499cc136fc66f3e (patch) | |
tree | ea9753f9e9f23e72d23fcffacd241f8d823786f6 /lib/stdlib/src/dets.erl | |
parent | 252eae09079533022061f6ec6f2dc1310383d4c4 (diff) | |
parent | 5960967a506c2eeadb3cbf66a1e21fff5000f08b (diff) | |
download | otp-619f74597b36ed76826a76cc6499cc136fc66f3e.tar.gz otp-619f74597b36ed76826a76cc6499cc136fc66f3e.tar.bz2 otp-619f74597b36ed76826a76cc6499cc136fc66f3e.zip |
Merge branch 'maint'
* maint:
Fix a Dets bug concerning traversal of tables
Diffstat (limited to 'lib/stdlib/src/dets.erl')
-rw-r--r-- | lib/stdlib/src/dets.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/src/dets.erl b/lib/stdlib/src/dets.erl index d743467e97..44dad04f43 100644 --- a/lib/stdlib/src/dets.erl +++ b/lib/stdlib/src/dets.erl @@ -951,10 +951,10 @@ do_trav(Proc, Acc, Fun) -> Error end. -do_trav(#dets_cont{bin = eof}, _Proc, Acc, _Fun) -> - Acc; do_trav(State, Proc, Acc, Fun) -> case req(Proc, {match_init, State, safe}) of + '$end_of_table'-> + Acc; {cont, {Bins, NewState}} -> do_trav_bins(NewState, Proc, Acc, Fun, lists:reverse(Bins)); Error -> |