anchor.diff:                                 {stats, "@index-"++binary_to_list(Bucket),
                                   #stat_entry{timestamp = TS,
                                               values = BucketStats}})
  -      end, aggregate_index_stats(Stats)),
  -
  -    {noreply, #state{prev_counters = NewCounters,
  -                     prev_ts = TS}};
  +      end, aggregate_index_stats(Stats, KnownBuckets, Defaults)),
  +
  +    {noreply, State#state{prev_counters = NewCounters,
  +                          prev_ts = TS}};
  +handle_info({buckets, NewBuckets}, State) ->
  +    NewBuckets1 = lists:map(fun list_to_binary/1, NewBuckets),
  +    {noreply, State#state{buckets = NewBuckets1}};
   handle_info(_Info, State) ->
       {noreply, State}.
   
  
positive.code:           {{<<"b">>, <<"idx2">>, <<"m2">>}, 4},
            {{<<"b">>, <<"idx3">>, <<"m1">>}, 5},
            {{<<"b">>, <<"idx3">>, <<"m2">>}, 6}],
      Out = aggregate_index_stats(In),
  
      AStats0 = [{<<"index/idx1/m1">>, 1},
                 {<<"index/idx1/m2">>, 2},
  
negative.code:             end,
              TS
      end.
  
  do_recognize_name(<<"needs_restart">>) ->
      {status, index_needs_restart};
  