Penciller accepting push

Standardise on record definitions between modules to make easier - then
add functionality to pushing to penciller as bookie would do.  Some
initial manual testing of this seems OK.
This commit is contained in:
martinsumner 2016-08-09 16:09:29 +01:00
parent 75996b90ca
commit 718425633a
4 changed files with 612 additions and 138 deletions

21
include/leveled.hrl Normal file
View file

@ -0,0 +1,21 @@
-record(sft_options,
{wait = true :: boolean(),
expire_tombstones = false :: boolean()}).
-record(penciller_work,
{next_sqn :: integer(),
clerk :: pid(),
src_level :: integer(),
manifest :: list(),
start_time :: tuple(),
ledger_filepath :: string(),
manifest_file :: string(),
new_manifest :: list(),
unreferenced_files :: list()}).
-record(manifest_entry,
{start_key :: tuple(),
end_key :: tuple(),
owner :: pid(),
filename :: string()}).