Skip to content

Commit c6d5bcc

Browse files
author
Tim Vaillancourt
committed
adding forgotten balancer lock state restore
1 parent 79d2cfb commit c6d5bcc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MongoBackup/Backup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ def cleanup_and_exit(self, code, frame):
143143
if current_process().name == "MainProcess":
144144
logging.info("Starting cleanup and exit procedure! Killing running threads")
145145

146+
if self.sharding:
147+
self.sharding.restore_balancer_state()
148+
146149
submodules = ['replset', 'sharding', 'mongodumper', 'oplogtailer', 'archiver', 'uploader_s3']
147150
for submodule_name in submodules:
148151
submodule = getattr(self, submodule_name)

0 commit comments

Comments
 (0)