提交 4ac270fd 编写于 作者: C Chris Hajas 提交者: GitHub

Make sure gptransfer with md5 validation exits at end of program. (#2063)

Gptransfer will hang at the end of the program if there are existing
threads when the --validate=md5 argument is passed on Python 2.7. This adds explicit exit calls.

Authors: Chris Hajas and Jamie McAtamney
上级 4962f5ae
......@@ -2617,7 +2617,11 @@ class GpTransfer(object):
self._pool.addCommand(cmd)
self._pool.join()
self._pool.check_results()
try:
self._pool.check_results()
except ExecutionError, e:
logger.fatal("Unable to create work directory: %s" % e)
os._exit(2)
# if transferring entire system, dumpall and execute on destination
if self._options.full:
......@@ -2815,6 +2819,7 @@ class GpTransfer(object):
logger.warn('manually cleaned up.')
logger.info("Finished.")
os._exit(0)
def _dry_run(self):
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册