Remove references ot 'skip' strategy
Now called `recovr`
This commit is contained in:
parent
20a7a22571
commit
e175948378
4 changed files with 7 additions and 6 deletions
|
@ -120,7 +120,7 @@ Three potential recovery strategies are supported to provide some flexibility fo
|
||||||
|
|
||||||
- retain - on compaction KeyDeltas are retained in the Journal, only values are removed.
|
- retain - on compaction KeyDeltas are retained in the Journal, only values are removed.
|
||||||
|
|
||||||
- recalc - the compaction rules assume that on recovery the key changes will be recalculated by comparing the change with the current database state. In recovery the key changes will be recalculated by comparing the change with the current database state. A user-defined function should be passed in at startup to achieve this recalculation (to override `leveled_head:diff_indexspeacs/3`).
|
- recalc - the compaction rules assume that on recovery the key changes will be recalculated by comparing the change with the current database state. In recovery the key changes will be recalculated by comparing the change with the current database state. A user-defined function should be passed in at startup to achieve this recalculation (to override `leveled_head:diff_indexspecs/3`).
|
||||||
|
|
||||||
### Hot Backups
|
### Hot Backups
|
||||||
|
|
||||||
|
|
|
@ -1109,7 +1109,7 @@ book_destroy(Pid) ->
|
||||||
%% to store the backup.
|
%% to store the backup.
|
||||||
%%
|
%%
|
||||||
%% Backup files are hard-linked. Does not work in head_only mode, or if
|
%% Backup files are hard-linked. Does not work in head_only mode, or if
|
||||||
%% index changes are used with a `skip` compaction/reload strategy
|
%% index changes are used with a `recovr` compaction/reload strategy
|
||||||
book_hotbackup(Pid) ->
|
book_hotbackup(Pid) ->
|
||||||
gen_server:call(Pid, hot_backup, infinity).
|
gen_server:call(Pid, hot_backup, infinity).
|
||||||
|
|
||||||
|
|
|
@ -89,7 +89,7 @@
|
||||||
-type ledger_kv() ::
|
-type ledger_kv() ::
|
||||||
{ledger_key(), ledger_value()}.
|
{ledger_key(), ledger_value()}.
|
||||||
-type compaction_method() ::
|
-type compaction_method() ::
|
||||||
retain|skip|recalc.
|
retain|recovr|recalc.
|
||||||
-type compaction_strategy() ::
|
-type compaction_strategy() ::
|
||||||
list({tag(), compaction_method()}).
|
list({tag(), compaction_method()}).
|
||||||
-type journal_key_tag() ::
|
-type journal_key_tag() ::
|
||||||
|
@ -375,7 +375,7 @@ inker_reload_strategy(AltList) ->
|
||||||
|
|
||||||
|
|
||||||
-spec get_tagstrategy(ledger_key()|tag()|dummy, compaction_strategy())
|
-spec get_tagstrategy(ledger_key()|tag()|dummy, compaction_strategy())
|
||||||
-> skip|retain|recalc.
|
-> compaction_method().
|
||||||
%% @doc
|
%% @doc
|
||||||
%% Work out the compaction strategy for the key
|
%% Work out the compaction strategy for the key
|
||||||
get_tagstrategy({Tag, _, _, _}, Strategy) ->
|
get_tagstrategy({Tag, _, _, _}, Strategy) ->
|
||||||
|
|
|
@ -805,10 +805,11 @@ split_positions_into_batches(Positions, Journal, Batches) ->
|
||||||
%% recalculating the KeyChanges by looking at the object when we reload. So
|
%% recalculating the KeyChanges by looking at the object when we reload. So
|
||||||
%% old objects can be discarded.
|
%% old objects can be discarded.
|
||||||
%%
|
%%
|
||||||
%% If the strategy is skip, we don't care about KeyDeltas. Note though, that
|
%% If the strategy is recovr, we don't care about KeyDeltas. Note though, that
|
||||||
%% if the ledger is deleted it may not be possible to safely rebuild a KeyStore
|
%% if the ledger is deleted it may not be possible to safely rebuild a KeyStore
|
||||||
%% if it contains index entries. The hot_backup approach is also not safe with
|
%% if it contains index entries. The hot_backup approach is also not safe with
|
||||||
%% a `skip` strategy.
|
%% a `recovr` strategy. The recovr strategy assumes faults in the ledger will
|
||||||
|
%% be resolved via application-level anti-entropy
|
||||||
filter_output(KVCs, FilterFun, FilterServer, MaxSQN, ReloadStrategy) ->
|
filter_output(KVCs, FilterFun, FilterServer, MaxSQN, ReloadStrategy) ->
|
||||||
FoldFun =
|
FoldFun =
|
||||||
filter_output_fun(FilterFun, FilterServer, MaxSQN, ReloadStrategy),
|
filter_output_fun(FilterFun, FilterServer, MaxSQN, ReloadStrategy),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue