anchor.diff:      BinBucket = ?l2b(Bucket),
   
       DDocIdList = capi_utils:fetch_ddoc_ids(BinBucket),
  -    ViewStats = collect_view_stats(BinBucket, DDocIdList, MinFileSize),
  +    ViewStats = collect_view_stats(mapreduce_view, BinBucket, DDocIdList, MinFileSize),
       {ViewsDiskSize, ViewsDataSize} = aggregate_view_stats_loop(0, 0, ViewStats),
  +
  +    SpatialStats = collect_view_stats(spatial_view, BinBucket, DDocIdList, MinFileSize),
  +    {SpatialDiskSize, SpatialDataSize} = aggregate_view_stats_loop(0, 0, SpatialStats),
   
       {ok, CouchDir} = ns_storage_conf:this_node_dbdir(),
       {ok, ViewRoot} = ns_storage_conf:this_node_ixdir(),
  
positive.code:                            couch_views_actual_disk_size = ViewsActualDiskSize,
                             couch_views_disk_size = ViewsDiskSize,
                             couch_views_data_size = ViewsDataSize,
                             per_ddoc_stats = lists:sort(ViewStats)}.
  
  find_not_less_sig(Sig, [{CandidateSig, _, _, _} | RestViewStatsTuples] = VS) ->
      case CandidateSig < Sig of
  
negative.code:             ?log_debug("Get group info (~s/~s) failed:~n~p", [BinBucket, DDocId, Why])
      end.
  
  collect_view_stats(Mod, BinBucket, DDocIdList, MinFileSize) ->
      NameToStatsETS = ets:new(ok, []),
      try
          [views_collection_loop_iteration(Mod, BinBucket, NameToStatsETS, DDocId, MinFileSize)
           || DDocId <- DDocIdList],
          ets:tab2list(NameToStatsETS)
      after
  