Half-way to ets for Bookie mem

A half-way implementation with use of ETS as the bookie's memory
This commit is contained in:
martinsumner 2017-01-05 17:00:12 +00:00
parent bbdb35ae03
commit e6270d288f
3 changed files with 81 additions and 50 deletions

View file

@ -322,6 +322,7 @@ init([PCLopts]) ->
SrcPenciller = PCLopts#penciller_options.source_penciller,
{ok, State} = pcl_registersnapshot(SrcPenciller, self()),
leveled_log:log("P0001", [self()]),
io:format("Snapshot ledger sqn at ~w~n", [State#state.ledger_sqn]),
{ok, State#state{is_snapshot=true, source_penciller=SrcPenciller}};
%% Need to do something about timeout
{_RootPath, false} ->