Fix for hanoi store recovery

If we're opening a hanoi store configured with
smaller nursery size than the default, then
we need to make sure that we also open the
small levels.

Future feature is to actually squash the
smaller levels.
This commit is contained in:
Kresten Krab Thorup 2012-04-23 14:14:12 +02:00
parent 8b725cceaa
commit 755788ecfb

View file

@ -240,7 +240,7 @@ open_levels(Dir,Options) ->
{Level, NextMax}
end,
{undefined, 0},
lists:seq(MaxLevel, ?TOP_LEVEL, -1)),
lists:seq(MaxLevel, min(?TOP_LEVEL, MinLevel), -1)),
%% we need to do this much merge work before we can guarantee
%% response times ... this is the amount of "in flight" merging