Log changes
This commit is contained in:
parent
13c81f0ed1
commit
85c03a61f9
2 changed files with 9 additions and 9 deletions
|
@ -65,8 +65,7 @@
|
||||||
{"P0004",
|
{"P0004",
|
||||||
{info, "Remaining ledger snapshots are ~w"}},
|
{info, "Remaining ledger snapshots are ~w"}},
|
||||||
{"P0005",
|
{"P0005",
|
||||||
{info, "Delete confirmed as file ~s is removed from " ++
|
{info, "Delete confirmed as file ~s is removed from Manifest"}},
|
||||||
"unreferenced files"}},
|
|
||||||
{"P0006",
|
{"P0006",
|
||||||
{info, "Orphaned reply after timeout on L0 file write ~s"}},
|
{info, "Orphaned reply after timeout on L0 file write ~s"}},
|
||||||
{"P0007",
|
{"P0007",
|
||||||
|
|
|
@ -45,12 +45,12 @@
|
||||||
add_snapshot/3,
|
add_snapshot/3,
|
||||||
release_snapshot/2,
|
release_snapshot/2,
|
||||||
ready_to_delete/2,
|
ready_to_delete/2,
|
||||||
|
delete_confirmed/2,
|
||||||
check_for_work/2,
|
check_for_work/2,
|
||||||
is_basement/2,
|
is_basement/2,
|
||||||
dump_pidmap/1,
|
dump_pidmap/1,
|
||||||
levelzero_present/1,
|
levelzero_present/1,
|
||||||
pointer_convert/2,
|
pointer_convert/2
|
||||||
delete_confirmed/2
|
|
||||||
]).
|
]).
|
||||||
|
|
||||||
-export([
|
-export([
|
||||||
|
@ -298,6 +298,12 @@ ready_to_delete(Manifest, Filename) ->
|
||||||
P}
|
P}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
delete_confirmed(Manifest, Filename) ->
|
||||||
|
PidMap = dict:erase(Filename, Manifest#manifest.pidmap),
|
||||||
|
% Would be better to clear ETS at this point rather than on lookup?
|
||||||
|
Manifest#manifest{pidmap = PidMap}.
|
||||||
|
|
||||||
|
|
||||||
check_for_work(Manifest, Thresholds) ->
|
check_for_work(Manifest, Thresholds) ->
|
||||||
CheckLevelFun =
|
CheckLevelFun =
|
||||||
fun({Level, MaxCount}, {AccL, AccC}) ->
|
fun({Level, MaxCount}, {AccL, AccC}) ->
|
||||||
|
@ -333,11 +339,6 @@ levelzero_present(Manifest) ->
|
||||||
true
|
true
|
||||||
end.
|
end.
|
||||||
|
|
||||||
delete_confirmed(Manifest, Filename) ->
|
|
||||||
PidMap = dict:erase(Filename, Manifest#manifest.pidmap),
|
|
||||||
% Would be better to clear ETS at this point rather than on lookup?
|
|
||||||
Manifest#manifest{pidmap = PidMap}.
|
|
||||||
|
|
||||||
%%%============================================================================
|
%%%============================================================================
|
||||||
%%% Internal Functions
|
%%% Internal Functions
|
||||||
%%%============================================================================
|
%%%============================================================================
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue