mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 00:46:29 +00:00
I failed to add the schema "repmgr_%s" in all places where the repl_*
tables are used.
This commit is contained in:
4
repmgr.c
4
repmgr.c
@@ -310,7 +310,7 @@ do_master_register(void)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!PQgetisnull(res, 0, 0)) /* schema exists */
|
||||
if (!PQntuples(res) > 0) /* schema exists */
|
||||
{
|
||||
if (!force) /* and we are not forcing so error */
|
||||
{
|
||||
@@ -476,7 +476,7 @@ do_standby_register(void)
|
||||
return;
|
||||
}
|
||||
|
||||
if (PQgetisnull(res, 0, 0)) /* schema doesn't exists */
|
||||
if (PQntuples(res) == 0) /* schema doesn't exists */
|
||||
{
|
||||
fprintf(stderr, "Schema repmgr_%s doesn't exists.", myClusterName);
|
||||
PQclear(res);
|
||||
|
||||
Reference in New Issue
Block a user