anchor.diff:              ok
       end.
   
  +maybe_define_group(Bucket, BucketConfig, DDocId, Map) ->
  +    try
  +        define_group(Bucket, BucketConfig, DDocId, Map)
  +    catch
  +        throw:view_already_defined ->
  +            ok
  +    end.
  +
   apply_ddoc_map(Bucket, DDocId, Active, Passive, ToRemove) ->
       SetName = list_to_binary(Bucket),
   
  
positive.code:               ok
        end).
  
  apply_current_map(#state{bucket=Bucket, ddocs=DDocs} = State) ->
      {ok, BucketConfig} = ns_bucket:get_bucket(Bucket),
      VBucketStates = get_vbucket_states(Bucket, BucketConfig),
      Map = build_map(BucketConfig, VBucketStates),
      apply_map(Bucket, DDocs, undefined, Map),
      State#state{bucket_config=BucketConfig,
                  vbucket_states=VBucketStates,
                  pending_vbucket_states=VBucketStates,
                  map=Map}.
  
  interesting_ns_config_event(Bucket, {buckets, Buckets}) ->
      BucketConfigs = proplists:get_value(configs, Buckets, []),
  
negative.code: 
      {ok, _Timer} = timer:send_interval(?SYNC_INTERVAL, sync),
  
      {ok, _Timer} = timer:send_interval(?SYNC_INTERVAL, sync),
  
      State = #state{bucket=Bucket,
                     master_db_watcher=Watcher,
                     ddocs=undefined},
  
      {ok, apply_current_map(State)}.
  
  