mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
Whitespace and typo fixes
This commit is contained in:
9
repmgr.c
9
repmgr.c
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* repmgr.c - Command interpreter for the repmgr package
|
* repmgr.c - Command interpreter for the repmgr package
|
||||||
* Copyright (C) 2ndQuadrant, 2010-2016
|
* Copyright (C) 2ndQuadrant, 2010-2016
|
||||||
@@ -4477,16 +4478,16 @@ run_basebackup(const char *data_dir, int server_version)
|
|||||||
*/
|
*/
|
||||||
if (server_version < 90600 || !options.use_replication_slots)
|
if (server_version < 90600 || !options.use_replication_slots)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* We're going to check first if the user set the xlog method in the repmgr.conf
|
* We're going to check first if the user set the xlog method in the repmgr.conf
|
||||||
* file. We don't want to have conflits with pg_basebackup due to specifying the
|
* file. We don't want to have conflicts with pg_basebackup due to specifying the
|
||||||
* method twice.
|
* method twice.
|
||||||
*/
|
*/
|
||||||
const char xlog_short[4] = "-X ";
|
const char xlog_short[4] = "-X ";
|
||||||
const char xlog_long[14] = "--xlog-method";
|
const char xlog_long[14] = "--xlog-method";
|
||||||
if (strstr(options.pg_basebackup_options, xlog_short) == NULL && strstr(options.pg_basebackup_options, xlog_long) == NULL )
|
if (strstr(options.pg_basebackup_options, xlog_short) == NULL && strstr(options.pg_basebackup_options, xlog_long) == NULL )
|
||||||
{
|
{
|
||||||
appendPQExpBuffer(¶ms, " -X stream");
|
appendPQExpBuffer(¶ms, " -X stream");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user