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:             ?log_debug("Get group info (~s/~s) failed:~n~p", [BinBucket, DDocId, Why])
      end.
  
  collect_view_stats(BinBucket, DDocIdList, MinFileSize) ->
      NameToStatsETS = ets:new(ok, []),
      try
          [views_collection_loop_iteration(BinBucket, NameToStatsETS, DDocId, MinFileSize)
           || DDocId <- DDocIdList],
          ets:tab2list(NameToStatsETS)
      after
  
negative.code:     ?debugFmt("Got first result~n~p~n~p", [Out1, State1]),
      {Out2, State2} = parse_couch_stats(2000, CouchStatsRecord, 1000, State1, 0),
      ?debugFmt("Got second result~n~p~n~p", [Out2, State2]),
      ?assertEqual({CouchStatsRecord#ns_server_couch_stats.views_per_ddoc_stats,
                    CouchStatsRecord#ns_server_couch_stats.spatial_per_ddoc_stats}, State2),
      ?assertEqual(ExpectedOut1, Out1),
      ?assertEqual(ExpectedOut2, Out2).
  
  -endif.
  