Skip to content

Commit c168a3b

Browse files
committed
Merge pull request #81 from basho/enable-kernel-poll
Enable kernel poll
2 parents 8fb8548 + f141247 commit c168a3b

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

rebar.config

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@
3434

3535
{escript_incl_apps, [lager, getopt, bear, folsom, ibrowse, riakc, mochiweb, protobuffs, velvet]}.
3636

37-
%% Uncomment to use the Java client bench driver
38-
%% {escript_emu_args, "%%! -name bb@127.0.0.1 -setcookie YOUR_ERLANG_COOKIE\n"}.
37+
{escript_emu_args, "%%! +K true\n"}.
38+
%% Use this for the Java client bench driver
39+
%% {escript_emu_args, "%%! +K true -name bb@127.0.0.1 -setcookie YOUR_ERLANG_COOKIE\n"}.

src/basho_bench.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ main(Args) ->
5050
%% Load baseline configs
5151
case application:load(basho_bench) of
5252
ok -> ok;
53-
{error, {already_loaded, basho_bench}} -> ok
53+
{error, {already_loaded, basho_bench}} -> ok
5454
end,
5555
register(basho_bench, self()),
5656
basho_bench_config:set(test_id, BenchName),

src/basho_bench_driver_cs.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ new(ID) ->
109109
["127.0.0.1"]) of
110110
[C|_] = String when is_integer(C), C < 256 ->
111111
[String];
112-
T = Tuple when is_tuple(T) ->
112+
T when is_tuple(T) ->
113113
[T];
114114
Else ->
115115
Else
@@ -209,7 +209,7 @@ run2(Op, _KeyGen, _ValueGen, State) ->
209209

210210
bigfile_valgen(Id, Props) ->
211211
if Id == 1 ->
212-
lager:log(info, "~p value gen props: ~p\n", [?MODULE, Props]);
212+
lager:log(info, self(), "~p value gen props: ~p\n", [?MODULE, Props]);
213213
true ->
214214
ok
215215
end,

0 commit comments

Comments
 (0)