summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/testing/fixtures/replicaset.py
diff options
context:
space:
mode:
authorSiran Wang <siran.wang@mongodb.com>2021-05-03 14:58:36 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-05 15:27:50 +0000
commit1f1ef3f0d72ae66e7d9b41fc661827c672e46c9b (patch)
tree116e19529415bb80fe5ec24fa1be4664b71fd4a0 /buildscripts/resmokelib/testing/fixtures/replicaset.py
parente27c9f5b7f2298a947996f95431686fc44dec3da (diff)
downloadmongo-1f1ef3f0d72ae66e7d9b41fc661827c672e46c9b.tar.gz
SERVER-56187 use count_documents() instead of count()
Diffstat (limited to 'buildscripts/resmokelib/testing/fixtures/replicaset.py')
-rw-r--r--buildscripts/resmokelib/testing/fixtures/replicaset.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildscripts/resmokelib/testing/fixtures/replicaset.py b/buildscripts/resmokelib/testing/fixtures/replicaset.py
index 47c3dc66045..e9771f0925f 100644
--- a/buildscripts/resmokelib/testing/fixtures/replicaset.py
+++ b/buildscripts/resmokelib/testing/fixtures/replicaset.py
@@ -180,8 +180,9 @@ class ReplicaSetFixture(interface.ReplFixture): # pylint: disable=too-many-inst
client = self.nodes[0].mongo_client()
interface.authenticate(client, self.auth_options)
- if client.local.system.replset.count():
+ if client.local.system.replset.count_documents(filter={}):
# Skip initializing the replset if there is an existing configuration.
+ self.logger.info("Configuration exists. Skipping initializing the replset.")
return
if self.write_concern_majority_journal_default is not None: