Skip to content

Commit

Permalink
Uff da: most PULSE non-determinism problems fixed?
Browse files Browse the repository at this point in the history
  • Loading branch information
slfritchie committed Dec 23, 2013
1 parent dd068bf commit 0695ba1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions rebar.config.script
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ case PulseBuild of
, {bitcask_nifs, file_position_int, 2}
, {bitcask_nifs, file_seekbof_int, 1}

, {bitcask_file, '_', '_'}
, {bitcask_time, tstamp, 0}

, {prim_file, '_', '_'}
Expand Down
4 changes: 4 additions & 0 deletions src/bitcask_file.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
-compile(export_all).
-behaviour(gen_server).

-ifdef(PULSE).
-compile({parse_transform, pulse_instrument}).
-endif.

%% API

%% gen_server callbacks
Expand Down
4 changes: 4 additions & 0 deletions src/bitcask_io.erl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
-module(bitcask_io).
-compile(export_all).

-ifdef(PULSE).
-compile({parse_transform, pulse_instrument}).
-endif.

file_open(Filename, Opts) ->
M = file_module(),
M:file_open(Filename, Opts).
Expand Down
2 changes: 1 addition & 1 deletion src/bitcask_nifs.erl
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ keydir_itr_next_int(_Ref) ->
erlang:nif_error({error, not_loaded}).

keydir_itr_release(_Ref) ->
ok.
erlang:nif_error({error, not_loaded}).


increment_file_id(_Ref) ->
Expand Down

0 comments on commit 0695ba1

Please sign in to comment.