We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d72758c commit b627509Copy full SHA for b627509
test/high_availability/ha_tools.py
@@ -462,10 +462,9 @@ def restart_members(members, router=False):
462
cmd = routers[member]['cmd']
463
else:
464
cmd = nodes[member]['cmd']
465
-
466
- lockfile_path = os.path.join(nodes[member]['dbpath'], 'mongod.lock')
467
- if os.path.exists(lockfile_path):
468
- os.remove(lockfile_path)
+ lockfile_path = os.path.join(nodes[member]['dbpath'], 'mongod.lock')
+ if os.path.exists(lockfile_path):
+ os.remove(lockfile_path)
469
470
proc = start_subprocess(cmd)
471
if router:
0 commit comments