[FIX] DB operations(backup,restore) process corrected,were blocked if db_port was supplied
lp bug: https://launchpad.net/bugs/405721 fixed bzr revid: jvo@tinyerp.com-20090730110552-irgeazuaqw0mhw49
This commit is contained in:
committed by
Jay (Open ERP)
parent
1a65067cee
commit
68785e3579
@@ -192,7 +192,7 @@ class db(netsvc.Service):
|
||||
if tools.config['db_host']:
|
||||
cmd.append('--host=' + tools.config['db_host'])
|
||||
if tools.config['db_port']:
|
||||
cmd.append('--port=' + tools.config['db_port'])
|
||||
cmd.append('--port=' + str(tools.config['db_port']))
|
||||
cmd.append(db_name)
|
||||
|
||||
stdin, stdout = tools.exec_pg_command_pipe(*tuple(cmd))
|
||||
@@ -236,7 +236,7 @@ class db(netsvc.Service):
|
||||
if tools.config['db_host']:
|
||||
cmd.append('--host=' + tools.config['db_host'])
|
||||
if tools.config['db_port']:
|
||||
cmd.append('--port=' + tools.config['db_port'])
|
||||
cmd.append('--port=' + str(tools.config['db_port']))
|
||||
cmd.append('--dbname=' + db_name)
|
||||
args2 = tuple(cmd)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user