From da4686682851589b98d251506b3b33dcd5ec9011 Mon Sep 17 00:00:00 2001 From: breakwa11 Date: Wed, 12 Aug 2015 12:45:07 +0800 Subject: [PATCH] restart server quickly when change password --- db_transfer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/db_transfer.py b/db_transfer.py index e374855..a62c30f 100644 --- a/db_transfer.py +++ b/db_transfer.py @@ -124,6 +124,7 @@ class DbTransfer(object): #password changed logging.info('db stop server at port [%s] reason: password changed' % (port,)) ServerPool.get_instance().cb_del_server(port) + ServerPool.get_instance().new_server(port, passwd) elif allow and ServerPool.get_instance().server_run_status(port) is False: logging.info('db start server at port [%s] pass [%s]' % (port, passwd))