repmgr: master register - remove superfluous transaction start

Also make quotation mark usage in logging output consistent.
This commit is contained in:
Ian Barwick
2017-04-17 12:30:44 +09:00
parent 39b3b32814
commit 01b3933922

View File

@@ -1898,7 +1898,7 @@ do_master_register(void)
if (!schema_exists)
{
log_info(_("master register: creating database objects inside the %s schema\n"),
log_info(_("master register: creating database objects inside the '%s' schema\n"),
get_repmgr_schema());
begin_transaction(conn);
@@ -1945,8 +1945,6 @@ do_master_register(void)
exit(ERR_BAD_CONFIG);
}
begin_transaction(conn);
/*
* Check whether there's an existing record for this node, and
* update it if --force set
@@ -2010,7 +2008,7 @@ do_master_register(void)
PQfinish(conn);
log_notice(_("master node correctly registered for cluster %s with id %d (conninfo: %s)\n"),
log_notice(_("master node correctly registered for cluster '%s' with id %d (conninfo: %s)\n"),
options.cluster_name, options.node, options.conninfo);
return;
}