Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1c634bb + fe1785c commit 179fef1Copy full SHA for 179fef1
mongo.py
@@ -44,7 +44,10 @@ def replsetlogs(*args):
44
45
@task
46
def force_resync():
47
- """Force a mongo secondary to resync by removing all it's data."""
+ """Force a mongo secondary to resync by removing all its data."""
48
+ if len(env.hosts) > 1:
49
+ abort("This task should only be run on one host at a time")
50
+
51
if i_am_primary():
52
abort(colors.red("Refusing to force resync on primary", bold=True))
53
0 commit comments