Update leveled_sst.erl

Remove abritrarily reduced timings.  Can cause problems when testing with coverage enabled
This commit is contained in:
Martin Sumner 2019-02-26 12:25:42 +00:00
parent 7dd07080c7
commit fffa257ffb

View file

@ -415,7 +415,7 @@ sst_setfordelete(Pid, Penciller) ->
%% For this file to be closed and deleted %% For this file to be closed and deleted
sst_clear(Pid) -> sst_clear(Pid) ->
gen_fsm:sync_send_event(Pid, {set_for_delete, false}, infinity), gen_fsm:sync_send_event(Pid, {set_for_delete, false}, infinity),
gen_fsm:sync_send_event(Pid, close, 1000). gen_fsm:sync_send_event(Pid, close).
-spec sst_deleteconfirmed(pid()) -> ok. -spec sst_deleteconfirmed(pid()) -> ok.
%% @doc %% @doc
@ -432,13 +432,13 @@ sst_deleteconfirmed(Pid) ->
%% the filename and the {startKey, EndKey} for the manifest. %% the filename and the {startKey, EndKey} for the manifest.
sst_checkready(Pid) -> sst_checkready(Pid) ->
%% Only used in test %% Only used in test
gen_fsm:sync_send_event(Pid, background_complete, 100). gen_fsm:sync_send_event(Pid, background_complete).
-spec sst_close(pid()) -> ok. -spec sst_close(pid()) -> ok.
%% @doc %% @doc
%% Close the file %% Close the file
sst_close(Pid) -> sst_close(Pid) ->
gen_fsm:sync_send_event(Pid, close, 2000). gen_fsm:sync_send_event(Pid, close).
-spec sst_printtimings(pid()) -> ok. -spec sst_printtimings(pid()) -> ok.
%% @doc %% @doc
@ -446,7 +446,7 @@ sst_close(Pid) ->
%% forced to be printed. %% forced to be printed.
%% Used in unit tests to force the printing of timings %% Used in unit tests to force the printing of timings
sst_printtimings(Pid) -> sst_printtimings(Pid) ->
gen_fsm:sync_send_event(Pid, print_timings, 1000). gen_fsm:sync_send_event(Pid, print_timings).
%%%============================================================================ %%%============================================================================