Add constant NODE_NOT_FOUND

Which is what the magic number means in those contexts.
This commit is contained in:
Ian Barwick
2015-03-31 14:35:16 +09:00
parent 18544c82ca
commit 4dfeffe087
4 changed files with 10 additions and 10 deletions

View File

@@ -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);