Don't link snapshots
If a snapshot breaks a penciller clone, this shouldn't crash the main process.
This commit is contained in:
parent
082eabb65b
commit
c4e376ece5
3 changed files with 16 additions and 2 deletions
|
@ -916,12 +916,12 @@ snapshot_store(LedgerCache, Penciller, Inker, SnapType, Query, LongRunning) ->
|
|||
snapshot_query = Query,
|
||||
snapshot_longrunning = LongRunning,
|
||||
bookies_mem = BookiesMem},
|
||||
{ok, LedgerSnapshot} = leveled_penciller:pcl_start(PCLopts),
|
||||
{ok, LedgerSnapshot} = leveled_penciller:pcl_snapstart(PCLopts),
|
||||
case SnapType of
|
||||
store ->
|
||||
InkerOpts = #inker_options{start_snapshot=true,
|
||||
source_inker=Inker},
|
||||
{ok, JournalSnapshot} = leveled_inker:ink_start(InkerOpts),
|
||||
{ok, JournalSnapshot} = leveled_inker:ink_snapstart(InkerOpts),
|
||||
{ok, LedgerSnapshot, JournalSnapshot};
|
||||
ledger ->
|
||||
{ok, LedgerSnapshot, null}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue