Split code for folders - introduce runner actor
Introduce a dedicated module for all the different fold types. Also simplify the list of folders by deprecating those folds that should eb achieveable by fold_heads/fold_objects type folds but with smarter functions. Makes sure that the fold functiosn also have better spec coverage, and are dialyzer checked.
This commit is contained in:
parent
d0b8e47f77
commit
bfaed921e6
7 changed files with 817 additions and 735 deletions
|
@ -839,7 +839,8 @@ filepath(CompactFilePath, NewSQN, compact_journal) ->
|
|||
|
||||
|
||||
initiate_penciller_snapshot(Bookie) ->
|
||||
{ok, LedgerSnap, _} = leveled_bookie:book_snapshotledger(Bookie, self(), undefined),
|
||||
{ok, LedgerSnap, _} =
|
||||
leveled_bookie:book_snapshot(Bookie, ledger, undefined, true),
|
||||
MaxSQN = leveled_penciller:pcl_getstartupsequencenumber(LedgerSnap),
|
||||
{LedgerSnap, MaxSQN}.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue