...

Text file src/go.mongodb.org/mongo-driver/testdata/initial-dns-seedlist-discovery/replica-set/srvMaxHosts-zero-txt.yml

Documentation: go.mongodb.org/mongo-driver/testdata/initial-dns-seedlist-discovery/replica-set

     1# When srvMaxHosts is zero, all hosts are added to the seed list.
     2#
     3# replicaSet (TXT) is permitted because srvMaxHosts is non-positive.
     4uri: "mongodb+srv://test5.test.build.10gen.cc/?srvMaxHosts=0"
     5seeds:
     6    - localhost.test.build.10gen.cc:27017
     7hosts:
     8    - localhost:27017
     9    - localhost:27018
    10    - localhost:27019
    11options:
    12    authSource: thisDB
    13    replicaSet: repl0
    14    srvMaxHosts: 0
    15    ssl: true
    16ping: true

View as plain text