Cleanup dialyzer errrors in leveled_sst

This commit is contained in:
Heinz N. Gies 2017-07-31 19:30:29 +02:00
parent 4ccd67a3c2
commit 5e6df539cb
2 changed files with 10 additions and 10 deletions

View file

@ -28,10 +28,10 @@
timestamp :: integer()}). timestamp :: integer()}).
-record(manifest_entry, -record(manifest_entry,
{start_key :: tuple(), {start_key :: tuple() | undefined,
end_key :: tuple(), end_key :: tuple() | undefined,
owner :: pid()|list(), owner :: pid()|list(),
filename :: string()}). filename :: string() | undefined}).
-record(cdb_options, -record(cdb_options,
{max_size :: integer(), {max_size :: integer(),
@ -106,4 +106,4 @@
vclock, vclock,
updatemetadata=dict:store(clean, true, dict:new()), updatemetadata=dict:store(clean, true, dict:new()),
updatevalue :: term()}). updatevalue :: term()}).

View file

@ -117,7 +117,7 @@
-record(summary, {first_key :: tuple(), -record(summary, {first_key :: tuple(),
last_key :: tuple(), last_key :: tuple(),
index :: tuple(), index :: tuple() | undefined,
size :: integer(), size :: integer(),
max_sqn :: integer()}). max_sqn :: integer()}).
@ -129,9 +129,9 @@
%% extra copying. Files at the top of the tree yield, those lower down don't. %% extra copying. Files at the top of the tree yield, those lower down don't.
-record(state, {summary, -record(state, {summary,
handle :: file:fd(), handle :: file:fd() | undefined,
sst_timings :: tuple(), sst_timings :: tuple() | undefined,
penciller :: pid(), penciller :: pid() | undefined,
root_path, root_path,
filename, filename,
yield_blockquery = false :: boolean(), yield_blockquery = false :: boolean(),
@ -2057,4 +2057,4 @@ nonsense_coverage_test() ->
?assertMatch({reply, undefined, reader, #state{}}, ?assertMatch({reply, undefined, reader, #state{}},
handle_sync_event("hello", self(), reader, #state{})). handle_sync_event("hello", self(), reader, #state{})).
-endif. -endif.