anchor.diff:      DDocNames.
   
   
  -maybe_compact_view(DbName, MasterDbName, GroupId, Config) ->
  -    DDocId = <<"_design/", GroupId/binary>>,
  -    case (catch couch_view:get_group_info({DbName, MasterDbName}, DDocId)) of
  +maybe_compact_view(DbName, BucketName, DDocId, Config) ->
  +    case (catch couch_set_view:get_group_info(BucketName, DDocId)) of
       {ok, GroupInfo} ->
  -        case can_view_compact(Config, DbName, GroupId, GroupInfo) of
  +        case can_view_compact(Config, BucketName, DDocId, GroupInfo) of
           true ->
  -            {ok, CompactPid} = couch_view_compactor:start_compact({DbName, MasterDbName}, GroupId),
  +            {ok, CompactPid} = couch_set_view_compactor:start_compact(BucketName, DDocId),
               TimeLeft = compact_time_left(Config),
               MonRef = erlang:monitor(process, CompactPid),
               receive
  
positive.code:             true ->
                  ok;
              false ->
                  maybe_compact_views(DbName, MasterDbName, DDocNames, Config)
              end;
          {'DOWN', DbMonRef, process, _, Reason} ->
              couch_db:close(Db),
  
negative.code:         end;
      Error ->
          ?LOG_ERROR("Error opening view group `~s` from database `~s`: ~p",
              [DDocId, DbName, Error]),
          ok
      end.
  
  