Browse Source

check duplicate port

dev
BreakWa11 9 years ago
parent
commit
79260ff4ab
  1. 5
      db_transfer.py

5
db_transfer.py

@ -116,7 +116,12 @@ class DbTransfer(object):
port = row['port'] port = row['port']
passwd = row['passwd'] passwd = row['passwd']
if port not in cur_servers:
cur_servers[port] = passwd cur_servers[port] = passwd
else:
logging.error('more than one user use the same port [%s]' % (port,))
continue
if ServerPool.get_instance().server_is_run(port) > 0: if ServerPool.get_instance().server_is_run(port) > 0:
if not allow: if not allow:

Loading…
Cancel
Save