mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-28 01:16:29 +00:00
Reformat all source code using astyle
astyle --style=ansi --indent=tab
This commit is contained in:
18
repmgr.c
18
repmgr.c
@@ -81,7 +81,8 @@ char *server_cmd = NULL;
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
static struct option long_options[] = {
|
||||
static struct option long_options[] =
|
||||
{
|
||||
{"dbname", required_argument, NULL, 'd'},
|
||||
{"host", required_argument, NULL, 'h'},
|
||||
{"port", required_argument, NULL, 'p'},
|
||||
@@ -1347,7 +1348,8 @@ check_parameters_for_action(const int action)
|
||||
fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname);
|
||||
ok = false;
|
||||
}
|
||||
if (dest_dir != NULL) {
|
||||
if (dest_dir != NULL)
|
||||
{
|
||||
fprintf(stderr, "\nYou don't need a destination directory for MASTER REGISTER command");
|
||||
fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname);
|
||||
ok = false;
|
||||
@@ -1366,7 +1368,8 @@ check_parameters_for_action(const int action)
|
||||
fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname);
|
||||
ok = false;
|
||||
}
|
||||
if (dest_dir != NULL) {
|
||||
if (dest_dir != NULL)
|
||||
{
|
||||
fprintf(stderr, "\nYou don't need a destination directory for STANDBY REGISTER command");
|
||||
fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname);
|
||||
ok = false;
|
||||
@@ -1386,7 +1389,8 @@ check_parameters_for_action(const int action)
|
||||
fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname);
|
||||
ok = false;
|
||||
}
|
||||
if (dest_dir != NULL) {
|
||||
if (dest_dir != NULL)
|
||||
{
|
||||
fprintf(stderr, "\nYou don't need a destination directory for STANDBY PROMOTE command");
|
||||
fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname);
|
||||
ok = false;
|
||||
@@ -1406,7 +1410,8 @@ check_parameters_for_action(const int action)
|
||||
fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname);
|
||||
ok = false;
|
||||
}
|
||||
if (dest_dir != NULL) {
|
||||
if (dest_dir != NULL)
|
||||
{
|
||||
fprintf(stderr, "\nYou don't need a destination directory for STANDBY FOLLOW command");
|
||||
fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname);
|
||||
ok = false;
|
||||
@@ -1418,7 +1423,8 @@ check_parameters_for_action(const int action)
|
||||
* repmgr.conf is useless because we don't have a server running
|
||||
* in the standby
|
||||
*/
|
||||
if (config_file != NULL) {
|
||||
if (config_file != NULL)
|
||||
{
|
||||
fprintf(stderr, "\nYou need to use connection parameters to the master when issuing a STANDBY CLONE command.");
|
||||
fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname);
|
||||
ok = false;
|
||||
|
||||
Reference in New Issue
Block a user