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"));
main(int argc, char *argv[])
{
char *DataDir = NULL;
- bool force = false;
int c;
bool crc_ok;
}
}
- while ((c = getopt(argc, argv, "D:fr:d")) != -1)
+ while ((c = getopt(argc, argv, "D:r:d")) != -1)
{
switch (c)
{
case 'D':
DataDir = optarg;
break;
- case 'f':
- force = true;
- break;
case 'r':
if (atoi(optarg) <= 0)
{
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);