Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4ba96d1

Browse files
committed
Improve format of code and some error messages in pg_checksums
This makes the code more consistent with the surroundings.Author: Fabrízio de Royes MelloDiscussion:https://postgr.es/m/CAFcNs+pXb_35r5feMU3-dWsWxXU=Yjq+spUsthFyGFbT0QcaKg@mail.gmail.com
1 parentfb50d3f commit4ba96d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/bin/pg_checksums/pg_checksums.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,16 +435,18 @@ main(int argc, char *argv[])
435435
fprintf(stderr, _("%s: data checksums are not enabled in cluster\n"), progname);
436436
exit(1);
437437
}
438+
438439
if (ControlFile->data_checksum_version == 0 &&
439440
mode == PG_MODE_DISABLE)
440441
{
441-
fprintf(stderr, _("%s: data checksums are already disabled in cluster.\n"), progname);
442+
fprintf(stderr, _("%s: data checksums are already disabled in cluster\n"), progname);
442443
exit(1);
443444
}
445+
444446
if (ControlFile->data_checksum_version > 0 &&
445447
mode == PG_MODE_ENABLE)
446448
{
447-
fprintf(stderr, _("%s: data checksums are already enabled in cluster.\n"), progname);
449+
fprintf(stderr, _("%s: data checksums are already enabled in cluster\n"), progname);
448450
exit(1);
449451
}
450452

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp