anchor.diff:                                use_replica_index=true},
   
       try
  -        ok = couch_set_view:define_group(SetName, DDocId, Params)
  +        ok = ?csv_call(define_group, [SetName, DDocId, Params])
       catch
           throw:{not_found, deleted} ->
               %% The document has been deleted but we still think it's
  
positive.code:                 ddocs,
                  pending_vbucket_states,
                  waiters}).
  
  start_link(Bucket) ->
      {ok, BucketConfig} = ns_bucket:get_bucket(Bucket),
  
negative.code:     try
          %% this should go first because some of the replica vbuckets might
          %% need to be cleaned up from main index
          ok = ?csv_call(set_partition_states,
                         [SetName, DDocId, Active, Passive, Cleanup]),
  
          ok = ?csv_call(add_replica_partitions, [SetName, DDocId, Replica]),
          ok = ?csv_call(remove_replica_partitions,
                         [SetName, DDocId, ReplicaCleanup])
      catch
          throw:{not_found, deleted} ->
              %% The document has been deleted but we still think it's
  