mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
repmgr: master register - remove superfluous transaction start
Also make quotation mark usage in logging output consistent.
This commit is contained in:
6
repmgr.c
6
repmgr.c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user