Rationalise logging in commit

Also:

Sort the output from an 'all' fetch one loop at a time

Make sure the test of scoring na empty file  is scoring an empty file

If it is an emtpy file we want to compact the fragment away - in which case it should score 0.0 not 100.0
This commit is contained in:
Martin Sumner 2020-03-09 17:45:06 +00:00
parent 60e29f2ff0
commit 6b3328f4a3
3 changed files with 45 additions and 47 deletions

View file

@ -336,7 +336,7 @@
{info, "Scoring of compaction runs complete with highest score=~w "
++ "with run of run_length=~w"}},
{"IC004",
{info, "Score for filename ~s is ~w"}},
{info, "Score=~w with mean_byte_jump=~w for filename ~s"}},
{"IC005",
{info, "Compaction to be performed on ~w files with score of ~w"}},
{"IC006",
@ -406,9 +406,7 @@
{"CDB20",
{warn, "Error ~w caught when safe reading a file to length ~w"}},
{"CDB21",
{warn, "File ~s to be deleted but already gone"}},
{"CDB22",
{info, "Positions ~w fetch"}}
{warn, "File ~s to be deleted but already gone"}}
]).