mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
Minor formatting fixes
This commit is contained in:
6
repmgr.c
6
repmgr.c
@@ -1110,7 +1110,7 @@ do_standby_clone(void)
|
|||||||
*
|
*
|
||||||
* -T/--tablespace-mapping is not available as a pg_basebackup option for
|
* -T/--tablespace-mapping is not available as a pg_basebackup option for
|
||||||
* PostgreSQL 9.3 - we can only handle that with rsync, so if `--rsync-only`
|
* PostgreSQL 9.3 - we can only handle that with rsync, so if `--rsync-only`
|
||||||
# not set, fail with an error
|
* not set, fail with an error
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (options.tablespace_mapping.head != NULL)
|
if (options.tablespace_mapping.head != NULL)
|
||||||
@@ -1129,7 +1129,7 @@ do_standby_clone(void)
|
|||||||
sqlquery_snprintf(sqlquery,
|
sqlquery_snprintf(sqlquery,
|
||||||
"SELECT spcname "
|
"SELECT spcname "
|
||||||
" FROM pg_tablespace "
|
" FROM pg_tablespace "
|
||||||
"WHERE pg_tablespace_location(oid) = '%s'",
|
" WHERE pg_tablespace_location(oid) = '%s'",
|
||||||
cell->old_dir);
|
cell->old_dir);
|
||||||
res = PQexec(upstream_conn, sqlquery);
|
res = PQexec(upstream_conn, sqlquery);
|
||||||
if (PQresultStatus(res) != PGRES_TUPLES_OK)
|
if (PQresultStatus(res) != PGRES_TUPLES_OK)
|
||||||
@@ -1368,7 +1368,7 @@ do_standby_clone(void)
|
|||||||
{
|
{
|
||||||
for (cell = options.tablespace_mapping.head; cell; cell = cell->next)
|
for (cell = options.tablespace_mapping.head; cell; cell = cell->next)
|
||||||
{
|
{
|
||||||
if (strcmp( tblspc_dir_src.data, cell->old_dir) == 0)
|
if (strcmp(tblspc_dir_src.data, cell->old_dir) == 0)
|
||||||
{
|
{
|
||||||
mapping_found = true;
|
mapping_found = true;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user