Hibernate iclerk on completion of compaction
Will be inactive for a period. Will also force garbage collection.
This commit is contained in:
parent
3c834afa08
commit
5a853ee44d
1 changed files with 4 additions and 5 deletions
|
@ -361,13 +361,12 @@ handle_cast(scoring_complete, State) ->
|
|||
ok = CloseFun(FilterServer),
|
||||
ok = leveled_inker:ink_clerkcomplete(State#state.inker,
|
||||
ManifestSlice,
|
||||
FilesToDelete),
|
||||
{noreply, State#state{scoring_state = undefined}};
|
||||
FilesToDelete);
|
||||
false ->
|
||||
ok = CloseFun(FilterServer),
|
||||
ok = leveled_inker:ink_clerkcomplete(State#state.inker, [], []),
|
||||
{noreply, State#state{scoring_state = undefined}}
|
||||
end;
|
||||
ok = leveled_inker:ink_clerkcomplete(State#state.inker, [], [])
|
||||
end,
|
||||
{noreply, State#state{scoring_state = undefined}, hibernate};
|
||||
handle_cast({trim, PersistedSQN, ManifestAsList}, State) ->
|
||||
FilesToDelete =
|
||||
leveled_imanifest:find_persistedentries(PersistedSQN, ManifestAsList),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue