Standardise retention decision
Use the same function to decide for both scoring and compaction - and avoid the situation where somethig is scored for cmpaction, but doesnt change (which was the case previously with tombstones that were still in the ledger).
This commit is contained in:
parent
00823584ec
commit
80e6920d6c
2 changed files with 86 additions and 67 deletions
|
@ -157,6 +157,14 @@
|
|||
-type inker_options() :: #inker_options{}.
|
||||
-type ink_state() :: #state{}.
|
||||
-type registered_snapshot() :: {pid(), os:timestamp(), integer()}.
|
||||
-type filterserver() :: pid()|list(tuple()).
|
||||
-type filterfun() ::
|
||||
fun((filterserver(), leveled_codec:ledger_key(), leveled_codec:sqn()) ->
|
||||
current|replaced|missing).
|
||||
-type filterclosefun() :: fun((filterserver()) -> ok).
|
||||
-type filterinitfun() :: fun((pid()) -> {filterserver(), leveled_codec:sqn()}).
|
||||
|
||||
-export_type([filterserver/0, filterfun/0, filterclosefun/0, filterinitfun/0]).
|
||||
|
||||
%%%============================================================================
|
||||
%%% API
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue