File tree 1 file changed +8
-8
lines changed 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -3411,14 +3411,6 @@ initialize_data_directory(void)
3411
3411
make_template0 ();
3412
3412
3413
3413
make_postgres ();
3414
-
3415
- if (do_sync )
3416
- perform_fsync ();
3417
- else
3418
- printf (_ ("\nSync to disk skipped.\nThe data directory might become corrupt if the operating system crashes.\n" ));
3419
-
3420
- if (authwarning != NULL )
3421
- fprintf (stderr , "%s" , authwarning );
3422
3414
}
3423
3415
3424
3416
@@ -3647,6 +3639,14 @@ main(int argc, char *argv[])
3647
3639
3648
3640
initialize_data_directory ();
3649
3641
3642
+ if (do_sync )
3643
+ perform_fsync ();
3644
+ else
3645
+ printf (_ ("\nSync to disk skipped.\nThe data directory might become corrupt if the operating system crashes.\n" ));
3646
+
3647
+ if (authwarning != NULL )
3648
+ fprintf (stderr , "%s" , authwarning );
3649
+
3650
3650
/* Get directory specification used to start this executable */
3651
3651
strlcpy (bin_dir , argv [0 ], sizeof (bin_dir ));
3652
3652
get_parent_directory (bin_dir );
You can’t perform that action at this time.
0 commit comments