Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
74713483
Commit
74713483
authored
May 02, 2020
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add NLS to pg_verifybackup
parent
60fbb4d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
7 deletions
+24
-7
src/bin/pg_verifybackup/nls.mk
src/bin/pg_verifybackup/nls.mk
+17
-0
src/bin/pg_verifybackup/parse_manifest.h
src/bin/pg_verifybackup/parse_manifest.h
+1
-1
src/bin/pg_verifybackup/pg_verifybackup.c
src/bin/pg_verifybackup/pg_verifybackup.c
+6
-6
No files found.
src/bin/pg_verifybackup/nls.mk
0 → 100644
View file @
74713483
# src/bin/pg_verifybackup/nls.mk
CATALOG_NAME
=
pg_verifybackup
AVAIL_LANGUAGES
=
GETTEXT_FILES
=
$(FRONTEND_COMMON_GETTEXT_FILES)
\
parse_manifest.c
\
pg_verifybackup.c
\
../../common/fe_memutils.c
\
../../common/jsonapi.c
GETTEXT_TRIGGERS
=
$(FRONTEND_COMMON_GETTEXT_TRIGGERS)
\
json_manifest_parse_failure:2
\
error_cb:2
\
report_backup_error:2
\
report_fatal_error
GETTEXT_FLAGS
=
$(FRONTEND_COMMON_GETTEXT_FLAGS)
\
error_cb:2:c-format
\
report_backup_error:2:c-format
\
report_fatal_error:1:c-format
src/bin/pg_verifybackup/parse_manifest.h
View file @
74713483
...
...
@@ -29,7 +29,7 @@ typedef void (*json_manifest_perwalrange_callback)(JsonManifestParseContext *,
TimeLineID
tli
,
XLogRecPtr
start_lsn
,
XLogRecPtr
end_lsn
);
typedef
void
(
*
json_manifest_error_callback
)(
JsonManifestParseContext
*
,
char
*
fmt
,
...)
pg_attribute_printf
(
2
,
3
)
c
onst
c
har
*
fmt
,
...)
pg_attribute_printf
(
2
,
3
)
pg_attribute_noreturn
();
struct
JsonManifestParseContext
...
...
src/bin/pg_verifybackup/pg_verifybackup.c
View file @
74713483
...
...
@@ -124,7 +124,7 @@ static void record_manifest_details_for_wal_range(JsonManifestParseContext *cont
XLogRecPtr
start_lsn
,
XLogRecPtr
end_lsn
);
static
void
report_manifest_error
(
JsonManifestParseContext
*
context
,
char
*
fmt
,...)
c
onst
c
har
*
fmt
,...)
pg_attribute_printf
(
2
,
3
)
pg_attribute_noreturn
();
static
void
verify_backup_directory
(
verifier_context
*
context
,
...
...
@@ -358,7 +358,7 @@ main(int argc, char **argv)
* work quietly.
*/
if
(
!
context
.
saw_any_error
&&
!
quiet
)
printf
(
"backup successfully verified
\n
"
);
printf
(
_
(
"backup successfully verified
\n
"
)
);
return
context
.
saw_any_error
?
1
:
0
;
}
...
...
@@ -443,12 +443,12 @@ parse_manifest_file(char *manifest_path, manifest_files_hash **ht_p,
* expects this function not to return.
*/
static
void
report_manifest_error
(
JsonManifestParseContext
*
context
,
char
*
fmt
,...)
report_manifest_error
(
JsonManifestParseContext
*
context
,
c
onst
c
har
*
fmt
,...)
{
va_list
ap
;
va_start
(
ap
,
fmt
);
pg_log_generic_v
(
PG_LOG_FATAL
,
fmt
,
ap
);
pg_log_generic_v
(
PG_LOG_FATAL
,
gettext
(
fmt
)
,
ap
);
va_end
(
ap
);
exit
(
1
);
...
...
@@ -821,7 +821,7 @@ report_backup_error(verifier_context *context, const char *pg_restrict fmt,...)
va_list
ap
;
va_start
(
ap
,
fmt
);
pg_log_generic_v
(
PG_LOG_ERROR
,
fmt
,
ap
);
pg_log_generic_v
(
PG_LOG_ERROR
,
gettext
(
fmt
)
,
ap
);
va_end
(
ap
);
context
->
saw_any_error
=
true
;
...
...
@@ -838,7 +838,7 @@ report_fatal_error(const char *pg_restrict fmt,...)
va_list
ap
;
va_start
(
ap
,
fmt
);
pg_log_generic_v
(
PG_LOG_FATAL
,
fmt
,
ap
);
pg_log_generic_v
(
PG_LOG_FATAL
,
gettext
(
fmt
)
,
ap
);
va_end
(
ap
);
exit
(
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment