Skip to content

Commit cd59fcf

Browse files
Reword user-facing message for "power of two"
While there are numerous instances of using "power of 2" in the code, translated user-facing messages use "power of two". Fix two instances which used "power of 2" instead. This is a backpatch of 95fff2a in master. Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Discussion: https://postgr.es/m/20230829.175615.682972421946735863.horikyota.ntt@gmail.com Backpatch-through: v16
1 parent 5f38ff3 commit cd59fcf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/initdb/initdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3356,7 +3356,7 @@ main(int argc, char *argv[])
33563356
if (endptr == str_wal_segment_size_mb || *endptr != '\0')
33573357
pg_fatal("argument of --wal-segsize must be a number");
33583358
if (!IsValidWalSegSize(wal_segment_size_mb * 1024 * 1024))
3359-
pg_fatal("argument of --wal-segsize must be a power of 2 between 1 and 1024");
3359+
pg_fatal("argument of --wal-segsize must be a power of two between 1 and 1024");
33603360
}
33613361

33623362
get_restricted_token();

src/bin/pg_resetwal/pg_resetwal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ main(int argc, char *argv[])
295295
if (endptr == optarg || *endptr != '\0' || errno != 0)
296296
pg_fatal("argument of --wal-segsize must be a number");
297297
if (!IsValidWalSegSize(set_wal_segsize))
298-
pg_fatal("argument of --wal-segsize must be a power of 2 between 1 and 1024");
298+
pg_fatal("argument of --wal-segsize must be a power of two between 1 and 1024");
299299
break;
300300

301301
default:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy