Add test of switching from a big journal to a little journal

And sending objects over the journal size
This commit is contained in:
Martin Sumner 2018-09-25 16:56:24 +01:00
parent ab74d5c0dd
commit 051fcd672c
3 changed files with 56 additions and 17 deletions

View file

@ -157,7 +157,7 @@ clerk_trim(Pid, Inker, PersistedSQN) ->
%% of the hastable in the CDB file - so that the file is not blocked during
%% this calculation
clerk_hashtablecalc(HashTree, StartPos, CDBpid) ->
{ok, Clerk} = gen_server:start(?MODULE, [#iclerk_options{}], []),
{ok, Clerk} = gen_server:start_link(?MODULE, [#iclerk_options{}], []),
gen_server:cast(Clerk, {hashtable_calc, HashTree, StartPos, CDBpid}).
-spec clerk_stop(pid()) -> ok.