mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 00:26:30 +00:00
Fix master port check
Check introduced in dc0dfe9b56
was comparing the provided database name instead of the port.
This commit is contained in:
2
repmgr.c
2
repmgr.c
@@ -289,7 +289,7 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* We check that port number is not null */
|
/* We check that port number is not null */
|
||||||
if (!runtime_options.dbname[0])
|
if (!runtime_options.masterport[0])
|
||||||
{
|
{
|
||||||
strncpy(runtime_options.masterport, DEFAULT_MASTER_PORT, MAXLEN);
|
strncpy(runtime_options.masterport, DEFAULT_MASTER_PORT, MAXLEN);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user