mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-24 15:46:29 +00:00
Add constant NODE_NOT_FOUND
Which is what the magic number means in those contexts.
This commit is contained in:
3
repmgr.c
3
repmgr.c
@@ -485,7 +485,7 @@ main(int argc, char **argv)
|
||||
*/
|
||||
if (config_file_required)
|
||||
{
|
||||
if (options.node == -1)
|
||||
if (options.node == NODE_NOT_FOUND)
|
||||
{
|
||||
if(config_file_parsed == true)
|
||||
{
|
||||
@@ -2701,7 +2701,6 @@ create_schema(PGconn *conn)
|
||||
char sqlquery[QUERY_STR_LEN];
|
||||
PGresult *res;
|
||||
|
||||
|
||||
/* create schema */
|
||||
sqlquery_snprintf(sqlquery, "CREATE SCHEMA %s", get_repmgr_schema_quoted(conn));
|
||||
log_debug(_("master register: %s\n"), sqlquery);
|
||||
|
||||
Reference in New Issue
Block a user