Skip to content

Commit

Permalink
Removed rs_migration code, tests, and logic that relies on it.
Browse files Browse the repository at this point in the history
  • Loading branch information
fadushin committed Mar 7, 2017
1 parent 7112b2e commit eadd61d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 423 deletions.
291 changes: 0 additions & 291 deletions riak_test/yz_rs_migration_test.erl

This file was deleted.

17 changes: 1 addition & 16 deletions src/yz_app.erl
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ initialize_atoms() ->
maybe_setup(false) ->
ok;
maybe_setup(true) ->
Ring = yz_misc:get_ring(raw),
RSEnabled = yz_rs_migration:is_riak_search_enabled(),
yz_rs_migration:strip_rs_hooks(RSEnabled, Ring),
Routes = yz_wm_search:routes() ++ yz_wm_extract:routes() ++
yz_wm_index:routes() ++ yz_wm_schema:routes(),
ok = yz_events:add_guarded_handler(yz_events, []),
Expand All @@ -141,20 +138,8 @@ maybe_setup(true) ->
ok = yz_schema:setup_schema_bucket(),
ok = set_ibrowse_config(),
yz_misc:add_routes(Routes),
maybe_register_pb(RSEnabled),
ok.

%% @doc Conditionally register PB service IFF Riak Search is not
%% enabled.
-spec maybe_register_pb(boolean()) -> ok.
maybe_register_pb(true) ->
lager:info("Not registering Yokozuna protocol buffer services"
" because Riak Search is enabled as well"),
ok;
maybe_register_pb(false) ->
ok = riak_api_pb_service:register(?QUERY_SERVICES),
ok = riak_api_pb_service:register(?ADMIN_SERVICES).

%% @private
%%
%% @doc Determine if direct stats are being used or not. If not setup
Expand All @@ -177,4 +162,4 @@ set_ibrowse_config() ->
?YZ_CONFIG_IBROWSE_MAX_PIPELINE_SIZE,
?YZ_CONFIG_IBROWSE_MAX_PIPELINE_SIZE_DEFAULT)}
],
yz_solr:set_ibrowse_config(Config).
yz_solr:set_ibrowse_config(Config).
Loading

0 comments on commit eadd61d

Please sign in to comment.