MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / disable_replication

Method disable_replication

test/__init__.py:1131–1135  ·  view source on GitHub ↗

Disable replication on all secondaries.

(self, client)

Source from the content-addressed store, hash-verified

1129 return client
1130
1131 def disable_replication(self, client):
1132 """Disable replication on all secondaries."""
1133 for h, p in client.secondaries:
1134 secondary = self.single_client(h, p)
1135 secondary.admin.command("configureFailPoint", "stopReplProducer", mode="alwaysOn")
1136
1137 def enable_replication(self, client):
1138 """Enable replication on all secondaries."""

Callers 1

test_raise_wtimeoutMethod · 0.45

Calls 2

single_clientMethod · 0.95
commandMethod · 0.45

Tested by 1

test_raise_wtimeoutMethod · 0.36