...

Text file src/go.mongodb.org/mongo-driver/testdata/initial-dns-seedlist-discovery/replica-set/srvMaxHosts-zero.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 is permitted because srvMaxHosts is non-positive.
     4uri: "mongodb+srv://test1.test.build.10gen.cc/?replicaSet=repl0&srvMaxHosts=0"
     5seeds:
     6    - localhost.test.build.10gen.cc:27017
     7    - localhost.test.build.10gen.cc:27018
     8hosts:
     9    - localhost:27017
    10    - localhost:27018
    11    - localhost:27019
    12options:
    13    replicaSet: repl0
    14    srvMaxHosts: 0
    15    ssl: true
    16ping: true

View as plain text