anchor.diff:                  ok;
               true ->
                   ok = ?csv_call(mark_partitions_indexable,
  -                               [mapreduce_view, SetName, DDocId,
  -                                UnpauseVBuckets])
  +                               mapreduce_view, SetName, DDocId,
  +                                [UnpauseVBuckets])
           end,
   
           %% 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,
  -                       [mapreduce_view, SetName, DDocId, Active, Passive,
  -                        Cleanup]),
  +                       mapreduce_view, SetName, DDocId,
  +                       [Active, Passive, Cleanup]),
   
           case UseReplicaIndex of
               true ->
                   ok = ?csv_call(add_replica_partitions,
  -                               [mapreduce_view, SetName, DDocId, Replica]),
  +                               mapreduce_view, SetName, DDocId,
  +                               [Replica]),
                   ok = ?csv_call(remove_replica_partitions,
  -                               [mapreduce_view, SetName, DDocId,
  -                                ReplicaCleanup]);
  +                               mapreduce_view, SetName, DDocId,
  +                               [ReplicaCleanup]);
               false ->
                   ok
           end,
  
positive.code:                               use_replica_index=UseReplicaIndex},
  
      try
          ok = ?csv_call(define_group, [mapreduce_view, SetName, DDocId, Params])
      catch
          throw:{not_found, deleted} ->
              %% The document has been deleted but we still think it's
  
negative.code:                 ok;
              true ->
                  ok = ?csv_call(mark_partitions_unindexable,
                                 mapreduce_view, SetName, DDocId,
                                 [PauseVBuckets])
          end
  
      catch
  