Skip to content

Commit

Permalink
Remove duplicated hint.
Browse files Browse the repository at this point in the history
At some point this hint got added to the underlying code so it is no longer needed here.
  • Loading branch information
dwsteele committed May 22, 2019
1 parent ff9c1be commit e4cc008
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
4 changes: 1 addition & 3 deletions lib/pgBackRest/Stanza.pm
Expand Up @@ -36,7 +36,6 @@ my $strHintForce = "\nHINT: use stanza-create --force to force the stanza data t
my $strInfoMissing = " information missing"; my $strInfoMissing = " information missing";
my $strStanzaCreateErrorMsg = "not empty"; my $strStanzaCreateErrorMsg = "not empty";
my $strRepoEncryptedMsg = " and repo is encrypted and info file(s) are missing, --force cannot be used"; my $strRepoEncryptedMsg = " and repo is encrypted and info file(s) are missing, --force cannot be used";
my $strHintStanzaCreate = "\nHINT: has a stanza-create been performed?";


#################################################################################################################################### ####################################################################################################################################
# CONSTRUCTOR # CONSTRUCTOR
Expand Down Expand Up @@ -592,8 +591,7 @@ sub infoObject
{ {
if ($iResult == ERROR_FILE_MISSING) if ($iResult == ERROR_FILE_MISSING)
{ {
confess &log(ERROR, cfgOptionValid(CFGOPT_FORCE) ? $strResultMessage . $strHintForce : confess &log(ERROR, cfgOptionValid(CFGOPT_FORCE) ? $strResultMessage . $strHintForce : $strResultMessage, $iResult);
$strResultMessage . $strHintStanzaCreate, $iResult);
} }
else else
{ {
Expand Down
4 changes: 1 addition & 3 deletions src/perl/embed.auto.c
Expand Up @@ -15173,7 +15173,6 @@ static const EmbeddedModule embeddedModule[] =
"my $strInfoMissing = \" information missing\";\n" "my $strInfoMissing = \" information missing\";\n"
"my $strStanzaCreateErrorMsg = \"not empty\";\n" "my $strStanzaCreateErrorMsg = \"not empty\";\n"
"my $strRepoEncryptedMsg = \" and repo is encrypted and info file(s) are missing, --force cannot be used\";\n" "my $strRepoEncryptedMsg = \" and repo is encrypted and info file(s) are missing, --force cannot be used\";\n"
"my $strHintStanzaCreate = \"\\nHINT: has a stanza-create been performed?\";\n"
"\n\n\n\n" "\n\n\n\n"
"sub new\n" "sub new\n"
"{\n" "{\n"
Expand Down Expand Up @@ -15622,8 +15621,7 @@ static const EmbeddedModule embeddedModule[] =
"{\n" "{\n"
"if ($iResult == ERROR_FILE_MISSING)\n" "if ($iResult == ERROR_FILE_MISSING)\n"
"{\n" "{\n"
"confess &log(ERROR, cfgOptionValid(CFGOPT_FORCE) ? $strResultMessage . $strHintForce :\n" "confess &log(ERROR, cfgOptionValid(CFGOPT_FORCE) ? $strResultMessage . $strHintForce : $strResultMessage, $iResult);\n"
"$strResultMessage . $strHintStanzaCreate, $iResult);\n"
"}\n" "}\n"
"else\n" "else\n"
"{\n" "{\n"
Expand Down
1 change: 0 additions & 1 deletion test/expect/mock-stanza-001.log
Expand Up @@ -16,7 +16,6 @@ P00 ERROR: [055]: archive.info does not exist but is required to push/get WAL s
HINT: is archive_command configured in postgresql.conf? HINT: is archive_command configured in postgresql.conf?
HINT: has a stanza-create been performed? HINT: has a stanza-create been performed?
HINT: use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme. HINT: use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme.
HINT: has a stanza-create been performed?
P00 INFO: stanza-upgrade command end: aborted with exception [055] P00 INFO: stanza-upgrade command end: aborted with exception [055]


stanza-create db - successfully create the stanza (db-master host) stanza-create db - successfully create the stanza (db-master host)
Expand Down
1 change: 0 additions & 1 deletion test/expect/mock-stanza-002.log
Expand Up @@ -16,7 +16,6 @@ P00 ERROR: [055]: archive.info does not exist but is required to push/get WAL s
HINT: is archive_command configured in postgresql.conf? HINT: is archive_command configured in postgresql.conf?
HINT: has a stanza-create been performed? HINT: has a stanza-create been performed?
HINT: use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme. HINT: use --no-archive-check to disable archive checks during backup if you have an alternate archiving scheme.
HINT: has a stanza-create been performed?
P00 INFO: stanza-upgrade command end: aborted with exception [055] P00 INFO: stanza-upgrade command end: aborted with exception [055]


stanza-create db - successfully create the stanza (backup host) stanza-create db - successfully create the stanza (backup host)
Expand Down

0 comments on commit e4cc008

Please sign in to comment.