From 01b3933922aacd69513805e9666818d781c2e296 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 17 Apr 2017 12:30:44 +0900 Subject: [PATCH] repmgr: master register - remove superfluous transaction start Also make quotation mark usage in logging output consistent. --- repmgr.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/repmgr.c b/repmgr.c index b627f861..b721061a 100644 --- a/repmgr.c +++ b/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; }