Skip to content

Commit ae68608

Browse files
committed
Dialyzer and test path fixes
Resolve initial dialyzer warnings and change test paths to use "_build/test/log" to avoid checking in tets ouptuts, or assuming "/tmp" is available and writable.
1 parent fa6e516 commit ae68608

8 files changed

+194
-202
lines changed

include/bitcask.hrl

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
filename :: string(), % Filename
1212
tstamp :: integer(), % Tstamp portion of filename
1313
fd :: port(), % File handle
14-
hintfd :: port(), % File handle for hints
14+
hintfd :: port() | undefined, % File handle for hints
1515
hintcrc=0 :: integer(), % CRC-32 of current hint
1616
ofs :: non_neg_integer(), % Current offset for writing
1717
l_ofs=0 :: non_neg_integer(), % Last offset written to data file
@@ -62,3 +62,5 @@
6262
-define(CHUNK_SIZE, 65535).
6363
-define(MIN_CHUNK_SIZE, 1024).
6464
-define(MAX_CHUNK_SIZE, 134217728).
65+
66+
-define(TEST_FILEPATH, "_build/test/log").

0 commit comments

Comments
 (0)