mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
Fix syntax errors in repmgr.c
This commit is contained in:
3
repmgr.c
3
repmgr.c
@@ -1779,13 +1779,14 @@ do_witness_create(void)
|
|||||||
PQfinish(masterconn);
|
PQfinish(masterconn);
|
||||||
exit(ERR_BAD_CONFIG);
|
exit(ERR_BAD_CONFIG);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* check if we need to create a database */
|
/* check if we need to create a database */
|
||||||
if(runtime_options.dbname[0] && strcmp(runtime_options.dbname,"postgres")!=0 && runtime_options.localport[0])
|
if(runtime_options.dbname[0] && strcmp(runtime_options.dbname,"postgres")!=0 && runtime_options.localport[0])
|
||||||
{
|
{
|
||||||
/* create required db */
|
/* create required db */
|
||||||
sprintf(script, "%s/createdb -p %s -U postgres --owner=%s %s",
|
sprintf(script, "%s/createdb -p %s -U postgres --owner=%s %s",
|
||||||
options.pg_bindir, runtime_options.localport,runtime_options.username runtime_options.dbname);
|
options.pg_bindir, runtime_options.localport,runtime_options.username, runtime_options.dbname);
|
||||||
log_info("Create database for witness db: %s.\n", script);
|
log_info("Create database for witness db: %s.\n", script);
|
||||||
|
|
||||||
r = system(script);
|
r = system(script);
|
||||||
|
|||||||
Reference in New Issue
Block a user