Skip to content

Synchronous VNode Startup (AZ1011) #261

Merged
merged 2 commits into from Dec 15, 2011
View
5 src/riak_kv_app.erl
@@ -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}
Something went wrong with that request. Please try again.