Initial work on Journal Compaction

Largely untested work at this stage to allow for the Inker to request
the Inker's clerk to perform a single round of compact based on the best
run of files it can find.
This commit is contained in:
martinsumner 2016-09-27 14:58:26 +01:00
parent e2bb09b873
commit d24b100aa6
5 changed files with 494 additions and 56 deletions

View file

@ -21,13 +21,14 @@
filename :: string()}).
-record(cdb_options,
{max_size :: integer()}).
{max_size :: integer(),
file_path :: string()}).
-record(inker_options,
{cdb_max_size :: integer(),
root_path :: string(),
cdb_options :: #cdb_options{},
start_snapshot = false :: boolean,
start_snapshot = false :: boolean(),
source_inker :: pid(),
requestor :: pid()}).
@ -44,6 +45,11 @@
metadata_extractor :: function(),
indexspec_converter :: function()}).
-record(iclerk_options,
{inker :: pid(),
max_run_length :: integer(),
cdb_options :: #cdb_options{}}).
%% Temp location for records related to riak
-record(r_content, {