optimize
This commit is contained in:
parent
c3bb64bc2c
commit
1e85d14a48
2 changed files with 2 additions and 2 deletions
|
@ -88,6 +88,7 @@ class TransferBase(object):
|
|||
new_servers = {}
|
||||
allow_users = {}
|
||||
mu_servers = {}
|
||||
config = shell.get_config(False)
|
||||
for row in rows:
|
||||
try:
|
||||
allow = switchrule.isTurnOn(row) and row['enable'] == 1 and row['u'] + row['d'] < row['transfer_enable']
|
||||
|
@ -152,7 +153,6 @@ class TransferBase(object):
|
|||
else:
|
||||
self.new_server(port, passwd, cfg)
|
||||
else:
|
||||
config = shell.get_config(False)
|
||||
if ServerPool.get_instance().server_is_run(port) > 0:
|
||||
if config['additional_ports_only'] or not allow:
|
||||
logging.info('db stop server at port [%s]' % (port,))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue