anchor.diff:                      ok
               end
       end.
  +
  +sync(#state{bucket=Bucket,
  +            bucket_config=BucketConfig,
  +            pending_vbucket_states=PendingStates,
  +            map=Map} = State) ->
  +    NewMap = build_map(BucketConfig, PendingStates),
  +    case NewMap =/= Map of
  +        true ->
  +            apply_map(Bucket, BucketConfig, Map, NewMap),
  +            State#state{vbucket_states=PendingStates, map=NewMap};
  +        false ->
  +            State#state{vbucket_states=PendingStates}
  +    end.
  
positive.code: -export([init/1, handle_call/3, handle_cast/2,
           handle_info/2, terminate/2, code_change/3]).
  
  %% API
  -export([start_link/1]).
  
  
negative.code:     apply_map(Bucket, BucketConfig, undefined, Map),
      State#state{bucket_config=BucketConfig,
                  vbucket_states=VBucketStates,
                  pending_vbucket_states=VBucketStates,
                  map=Map}.
  
  interesting_ns_config_event(Bucket, {buckets, Buckets}) ->
  