From 8026dcbdd42d4d3adce491d838d2a4881e4b9ea3 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 12 Sep 2012 12:49:48 +0900 Subject: [PATCH] fix FoldingPIDs/NextList confusion which makes snapshot_range stuck the bug was introduced by commit f324972cdd91e6f457d0a4dd11beac1a80332e7e. --- src/hanoidb_level.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hanoidb_level.erl b/src/hanoidb_level.erl index a7459c0..948cc24 100644 --- a/src/hanoidb_level.erl +++ b/src/hanoidb_level.erl @@ -439,10 +439,10 @@ main_loop(State = #state{ next=Next }) -> ?log("init_range_fold ~p -> ~p", [Range, WorkerPID]), - {FoldingPIDs, NextList} = + {NextList, FoldingPIDs} = case {State#state.a, State#state.b, State#state.c} of {undefined, undefined, undefined} -> - {[], List}; + {List, []}; {_, undefined, undefined} -> ok = file:make_link(filename("A", State), filename("AF", State)),