Skip to content
Browse files

adding eleveldb..

  • Loading branch information...
1 parent b9d45aa commit 78cbc65bfcfa804cbbda466bbbf36230ec8f4715 @xslogic committed Jan 15, 2012
Showing with 16 additions and 4 deletions.
  1. +11 −0 generate
  2. +2 −1 rebar.config
  3. +3 −3 src/phoebus_worker.erl
View
11 generate
@@ -1,12 +1,23 @@
rebar get-deps
+
+# get and compile thrift_erl
cd deps/thrift_erl
rebar compile
rebar generate
cd -
+
+# get and compile eleveldb
+cd deps/eleveldb
+rebar compile
+rebar generate
+cd -
+
rebar compile
rm -rf rel/phoebus
rm -rf deps/thrift_erl/rel/thrift_erl
+rm -rf deps/eleveldb/rel/eleveldb
rebar generate
cp -r deps/thrift_erl/rel/thrift_erl/lib/thrift_erl* rel/phoebus/lib/
+cp -r deps/eleveldb/rel/eleveldb/lib/eleveldb* rel/phoebus/lib/
chmod +x ./rel/phoebus/bin/phoebus
./rel/phoebus/bin/phoebus co
View
3 rebar.config
@@ -4,5 +4,6 @@
{erl_opts, [debug_info]}.
{deps, [
- {thrift_erl, "0.5.0", {git, "git://github.com/xslogic/thrift_erl", "HEAD"}}
+ {thrift_erl, "0.5.0", {git, "git://github.com/xslogic/thrift_erl", "HEAD"}},
+ {eleveldb, "1.0.1", {git, "git://github.com/xslogic/eleveldb", "HEAD"}}
]}.
View
6 src/phoebus_worker.erl
@@ -295,8 +295,8 @@ algo(timeout, #state{master_info = {MNode, MPid, _},
%% ------------------------------------------------------------------------
%% ------------------------------------------------------------------------
-%% post_algo START
-%% Description : wait for master.. and then commit the step..
+%% await_buffer_merge START
+%% Description : await all message buffers to finish merging..
%% ------------------------------------------------------------------------
await_buffer_merge({done_merge, Pid},
#state{master_info = {MNode, MPid, _},
@@ -328,7 +328,7 @@ await_buffer_merge({done_merge, Pid},
_ -> {next_state, NextState, State#state{sub_state = SubState},Timeout}
end.
%% ------------------------------------------------------------------------
-%% post_algo DONE
+%% await_buffer_merge DONE
%% ------------------------------------------------------------------------

0 comments on commit 78cbc65

Please sign in to comment.
Something went wrong with that request. Please try again.