Fix comment in pg_upgrade.h.
authorNathan Bossart <[email protected]>
Wed, 19 Jun 2024 21:12:18 +0000 (16:12 -0500)
committerNathan Bossart <[email protected]>
Wed, 19 Jun 2024 21:12:18 +0000 (16:12 -0500)
Contrary to what the comment for the "check" struct member claims,
'pg_upgrade --check' performs only the checks and does not ask the
user for permission to make changes.

Reviewed-by: Daniel Gustafsson
Discussion: https://postgr.es/m/ZnHk7ci5IuTWVc_c%40nathan

src/bin/pg_upgrade/pg_upgrade.h

index 92bcb693fbf22e9028b50e31d71156384a2a9a25..8afe240bdfbd9ca8111ea615c748aa5a3f4d3b8e 100644 (file)
@@ -321,8 +321,7 @@ typedef struct
 */
 typedef struct
 {
-   bool        check;          /* true -> ask user for permission to make
-                                * changes */
+   bool        check;          /* check clusters only, don't change any data */
    bool        do_sync;        /* flush changes to disk */
    transferMode transfer_mode; /* copy files or link them? */
    int         jobs;           /* number of processes/threads to use */