Snapshot Work - Interim Commit

Some initial work to get snapshots going.

Changes required, as need to snapshot through the Bookie to ensure that
there is no race between extracting the Bookie's in-memory view and the
Penciller's view if a push_to_mem has occurred inbetween.

A lot still outstanding, especially around Inker snapshots, and handling
timeouts
This commit is contained in:
martinsumner 2016-09-23 18:50:29 +01:00
parent d3e985ed80
commit c64d67d9fb
5 changed files with 160 additions and 75 deletions

View file

@ -26,12 +26,17 @@
-record(inker_options,
{cdb_max_size :: integer(),
root_path :: string(),
cdb_options :: #cdb_options{}}).
cdb_options :: #cdb_options{},
start_snapshot = false :: boolean,
source_inker :: pid(),
requestor :: pid()}).
-record(penciller_options,
{root_path :: string(),
penciller :: pid(),
max_inmemory_tablesize :: integer()}).
max_inmemory_tablesize :: integer(),
start_snapshot = false :: boolean(),
source_penciller :: pid(),
requestor :: pid()}).
-record(bookie_options,
{root_path :: string(),