Moving the 'Starting backup' message to a better place

This commit is contained in:
Jaime Casanova
2012-06-12 09:39:02 -05:00
parent 6880483947
commit 9caa243354

View File

@@ -1017,8 +1017,6 @@ do_standby_clone(void)
exit(ERR_DB_CON); exit(ERR_DB_CON);
} }
log_notice("Starting backup...\n");
/* Get the data directory full path and the configuration files location */ /* Get the data directory full path and the configuration files location */
sqlquery_snprintf(sqlquery, sqlquery_snprintf(sqlquery,
"SELECT name, setting " "SELECT name, setting "
@@ -1058,6 +1056,8 @@ do_standby_clone(void)
} }
PQclear(res); PQclear(res);
log_notice("Starting backup...\n");
/* /*
* in pg 9.1 default is to wait for a sync standby to ack, * in pg 9.1 default is to wait for a sync standby to ack,
* avoid that by turning off sync rep for this session * avoid that by turning off sync rep for this session