diff options
author | Magnus Hagander <magnus@hagander.net> | 2018-04-15 13:49:47 +0200 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2018-04-15 13:52:48 +0200 |
commit | 44e2df461fa57d99e3547eab49e48d5150540aab (patch) | |
tree | 66bbaaf0580d2f7ea5ac86c3c1d74d98722902e7 /src | |
parent | 49ac4039b28ec04ec0329b13bbb1baa6e94c86b7 (diff) | |
download | postgresql-44e2df461fa57d99e3547eab49e48d5150540aab.tar.gz postgresql-44e2df461fa57d99e3547eab49e48d5150540aab.zip |
Remove -f option from pg_verify_checksums
This option makes no sense when the cluster checksum state cannot be
changed, and should have been removed in the revert.
Author: Daniel Gustafsson
Review: Michael Paquier
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_verify_checksums/pg_verify_checksums.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/bin/pg_verify_checksums/pg_verify_checksums.c b/src/bin/pg_verify_checksums/pg_verify_checksums.c index ddbd7fa33cc..d472f1291c5 100644 --- a/src/bin/pg_verify_checksums/pg_verify_checksums.c +++ b/src/bin/pg_verify_checksums/pg_verify_checksums.c @@ -42,7 +42,6 @@ usage() printf(_(" %s [OPTION] [DATADIR]\n"), progname); printf(_("\nOptions:\n")); printf(_(" [-D] DATADIR data directory\n")); - printf(_(" -f, force check even if checksums are disabled\n")); printf(_(" -r relfilenode check only relation with specified relfilenode\n")); printf(_(" -d debug output, listing all checked blocks\n")); printf(_(" -V, --version output version information, then exit\n")); @@ -202,7 +201,6 @@ int main(int argc, char *argv[]) { char *DataDir = NULL; - bool force = false; int c; bool crc_ok; @@ -224,7 +222,7 @@ main(int argc, char *argv[]) } } - while ((c = getopt(argc, argv, "D:fr:d")) != -1) + while ((c = getopt(argc, argv, "D:r:d")) != -1) { switch (c) { @@ -234,9 +232,6 @@ main(int argc, char *argv[]) case 'D': DataDir = optarg; break; - case 'f': - force = true; - break; case 'r': if (atoi(optarg) <= 0) { @@ -292,7 +287,7 @@ main(int argc, char *argv[]) exit(1); } - if (ControlFile->data_checksum_version == 0 && !force) + if (ControlFile->data_checksum_version == 0) { fprintf(stderr, _("%s: data checksums are not enabled in cluster.\n"), progname); exit(1); |