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

Method enable_replication

test/__init__.py:1137–1141  ·  view source on GitHub ↗

Enable replication on all secondaries.

(self, client)

Source from the content-addressed store, hash-verified

1135 secondary.admin.command("configureFailPoint", "stopReplProducer", mode="alwaysOn")
1136
1137 def enable_replication(self, client):
1138 """Enable replication on all secondaries."""
1139 for h, p in client.secondaries:
1140 secondary = self.single_client(h, p)
1141 secondary.admin.command("configureFailPoint", "stopReplProducer", mode="off")
1142
1143
1144class UnitTest(PyMongoTestCase):

Callers

nothing calls this directly

Calls 2

single_clientMethod · 0.95
commandMethod · 0.45

Tested by

no test coverage detected