Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronous VNode Startup (AZ1011) #261

Merged
merged 2 commits into from
Dec 15, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/riak_kv_app.erl
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ start(_Type, _StartArgs) ->
%% Go ahead and mark the riak_kv service as up in the node watcher.
%% The riak_core_ring_handler blocks until all vnodes have been started
%% synchronously.
riak_core:register_vnode_module(riak_kv_vnode),
riak_core_node_watcher:service_up(riak_kv, self()),
riak_core:register(riak_kv, [
{vnode_module, riak_kv_vnode}
]),
{ok, Pid};
{error, Reason} ->
{error, Reason}
Expand Down