anchor.diff:                       fun () ->
                                ns_pubsub:subscribe_link(ns_config_events, fun handle_cfg_event/1)
                        end),
  -    work_queue:submit_work(index_stats_worker, fun refresh_childs/0),
  +    work_queue:submit_work(index_stats_worker, fun refresh_children/0),
       RV.
  
positive.code:     {ok, {{one_for_all,
             misc:get_env_default(max_r, 3),
             misc:get_env_default(max_t, 10)},
            Childs}};
  init(child) ->
      {ok, {{one_for_one,
             misc:get_env_default(max_r, 3),
  
negative.code:         false ->
              ok;
          true ->
              work_queue:submit_work(index_stats_worker, fun refresh_children/0)
      end.
  
  compute_wanted_children(Config) ->
      case ns_cluster_membership:should_run_service(Config, index, node()) of
          false ->
              [];
          true ->
              BucketCfgs = ns_bucket:get_buckets(Config),
              BucketNames = [Name || {Name, BConfig} <- BucketCfgs,
  