Alter logging to help understand performance factors

Change logging of the snapshots to better understand performance
This commit is contained in:
martinsumner 2017-03-06 10:17:51 +00:00
parent b1e12a3bc5
commit 5c2f05858d
4 changed files with 13 additions and 7 deletions

View file

@ -289,12 +289,12 @@ release_snapshot(Manifest, Pid) ->
{SnapList0, MinSnapSQN} = lists:foldl(FilterFun,
{[], infinity},
Manifest#manifest.snapshots),
leveled_log:log("P0004", [SnapList0]),
case SnapList0 of
[] ->
Manifest#manifest{snapshots = SnapList0,
min_snapshot_sqn = 0};
_ ->
leveled_log:log("P0004", [SnapList0]),
Manifest#manifest{snapshots = SnapList0,
min_snapshot_sqn = MinSnapSQN}
end.