Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Synchronous VNode Startup (AZ1011) #95

Merged
merged 2 commits into from

1 participant

Rusty Klophaus
Rusty Klophaus rustyio merged commit ad578b8 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 14, 2011
  1. Rusty Klophaus

    Trigger a ring_update to start vnodes, remove call to service_up as i…

    rustyio authored
    …t is now handled by riak_core_ring_handler.
    
    AZ1011
Commits on Dec 15, 2011
  1. Rusty Klophaus

    Use new riak_core:register/N function.

    rustyio authored
    AZ1011
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 5 deletions.
  1. +7 −5 src/riak_search_app.erl
12 src/riak_search_app.erl
View
@@ -18,15 +18,17 @@
start(_StartType, _StartArgs) ->
case app_helper:get_env(riak_search, enabled, false) of
true ->
+ %% Ensure that the KV service has fully loaded.
+ riak_core:wait_for_service(riak_kv),
+
case riak_search_sup:start_link() of
{ok, Pid} ->
%% Register the search vnode with core and mark the node
%% as available for search requests.
- riak_core:register([
- {vnode_module, riak_search_vnode},
- {bucket_fixup, riak_search_kv_hook}
- ]),
- riak_core_node_watcher:service_up(riak_search, self()),
+ riak_core:register(riak_search, [
+ {vnode_module, riak_search_vnode},
+ {bucket_fixup, riak_search_kv_hook}
+ ]),
%% Register our cluster_info app callback modules, with catch if
%% the app is missing or packaging is broken.
Something went wrong with that request. Please try again.