@@ -118,7 +118,6 @@ static const char *authmethodlocal = "";
118118static bool debug = false;
119119static bool noclean = false;
120120static bool do_sync = true;
121- static bool sync_only = false;
122121static bool show_setting = false;
123122static char * xlog_dir = "" ;
124123
@@ -2797,7 +2796,6 @@ usage(const char *progname)
27972796 printf (_ (" -n, --noclean do not clean up after errors\n" ));
27982797 printf (_ (" -N, --nosync do not wait for changes to be written safely to disk\n" ));
27992798 printf (_ (" -s, --show show internal settings\n" ));
2800- printf (_ (" -S, --sync-only only sync data directory\n" ));
28012799 printf (_ ("\nOther options:\n" ));
28022800 printf (_ (" -V, --version output version information, then exit\n" ));
28032801 printf (_ (" -?, --help show this help, then exit\n" ));
@@ -3447,7 +3445,6 @@ main(int argc, char *argv[])
34473445 {"show" , no_argument , NULL , 's' },
34483446 {"noclean" , no_argument , NULL , 'n' },
34493447 {"nosync" , no_argument , NULL , 'N' },
3450- {"sync-only" , no_argument , NULL , 'S' },
34513448 {"xlogdir" , required_argument , NULL , 'X' },
34523449 {NULL , 0 , NULL , 0 }
34533450 };
@@ -3479,7 +3476,7 @@ main(int argc, char *argv[])
34793476
34803477 /* process command-line options */
34813478
3482- while ((c = getopt_long (argc , argv , "dD:E:L:nNU:WA:sST :X:" , long_options , & option_index )) != -1 )
3479+ while ((c = getopt_long (argc , argv , "dD:E:L:nNU:WA:sT :X:" , long_options , & option_index )) != -1 )
34833480 {
34843481 switch (c )
34853482 {
@@ -3525,9 +3522,6 @@ main(int argc, char *argv[])
35253522 case 'N' :
35263523 do_sync = false;
35273524 break ;
3528- case 'S' :
3529- sync_only = true;
3530- break ;
35313525 case 'L' :
35323526 share_path = pg_strdup (optarg );
35333527 break ;
@@ -3595,14 +3589,6 @@ main(int argc, char *argv[])
35953589 exit (1 );
35963590 }
35973591
3598- /* If we only need to fsync, just to it and exit */
3599- if (sync_only )
3600- {
3601- setup_pgdata ();
3602- perform_fsync ();
3603- return 0 ;
3604- }
3605-
36063592 if (pwprompt && pwfilename )
36073593 {
36083594 fprintf (stderr , _ ("%s: password prompt and password file cannot be specified together\n" ), progname );
0 commit comments