anchor.diff:      end.
   
   add_couch_api_base(BucketName, BucketUUID, KV, Node, LocalAddr) ->
  -    KV1 = case capi_utils:capi_bucket_url_bin(Node, BucketName, BucketUUID, LocalAddr) of
  -              undefined -> KV;
  -              CapiBucketUrl ->
  -                  [{couchApiBase, CapiBucketUrl} | KV]
  -          end,
  -    case capi_utils:capi_bucket_url_bin({ssl, Node}, BucketName, BucketUUID, LocalAddr) of
  -        undefined -> KV1;
  -        CapiSSLBucketUrl ->
  -            [{couchApiBaseHTTPS, CapiSSLBucketUrl} | KV1]
  -    end.
  +    NodesKeysList = [{Node, couchApiBase}, {{ssl, Node}, couchApiBaseHTTPS}],
  +
  +    lists:foldl(fun({N, Key}, KVAcc) ->
  +                        case capi_utils:capi_bucket_url_bin(N, BucketName,
  +                                                            BucketUUID, LocalAddr) of
  +                            undefined ->
  +                                KVAcc;
  +                            Url ->
  +                                {ok, BCfg} = ns_bucket:get_bucket(BucketName),
  +                                case ns_bucket:storage_mode(BCfg) of
  +                                    couchstore ->
  +                                        [{Key, Url} | KVAcc];
  +                                    _ ->
  +                                        KVAcc
  +                                end
  +                        end
  +                end, KV, NodesKeysList).
   
   %% Used while building the bucket info. This transforms the internal
   %% representation of bucket types to externally known bucket types.
  
positive.code:     StatsUri = bin_concat_path(["pools", "default", "buckets", Id, "stats"]),
      StatsDirectoryUri = iolist_to_binary([StatsUri, <<"Directory">>]),
      NodeStatsListURI = bin_concat_path(["pools", "default", "buckets", Id, "nodes"]),
      DDocsURI = bin_concat_path(["pools", "default", "buckets", Id, "ddocs"]),
      BucketCaps = build_bucket_capabilities(BucketConfig),
  
      MaybeBucketUUID = proplists:get_value(uuid, BucketConfig),
  
negative.code:               {stats, {struct, [{uri, StatsUri},
                                  {directoryURI, StatsDirectoryUri},
                                  {nodeStatsListURI, NodeStatsListURI}]}},
                {nodeLocator, ns_bucket:node_locator(BucketConfig)}
                | Suffix4]}.
  
  