Reduce frequency of timing logs

and record level in the sst timing logs
This commit is contained in:
Martin Sumner 2019-05-11 15:59:42 +01:00
parent 486af59da1
commit d30fb0ee33
6 changed files with 44 additions and 33 deletions

View file

@ -557,7 +557,7 @@ load_level(LevelIdx, Level, LoadFun, SQNFun) ->
HigherLevelLoadFun =
fun(ME, {L_Out, L_MaxSQN, FileList, BloomL}) ->
FN = ME#manifest_entry.filename,
{P, Bloom} = LoadFun(FN),
{P, Bloom} = LoadFun(FN, LevelIdx),
SQN = SQNFun(P),
{[ME#manifest_entry{owner=P}|L_Out],
max(SQN, L_MaxSQN),
@ -567,7 +567,7 @@ load_level(LevelIdx, Level, LoadFun, SQNFun) ->
LowerLevelLoadFun =
fun({EK, ME}, {L_Out, L_MaxSQN, FileList, BloomL}) ->
FN = ME#manifest_entry.filename,
{P, Bloom} = LoadFun(FN),
{P, Bloom} = LoadFun(FN, LevelIdx),
SQN = SQNFun(P),
{[{EK, ME#manifest_entry{owner=P}}|L_Out],
max(SQN, L_MaxSQN),