Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcd59fcf

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 instanceswhich used "power of 2" instead.This is a backpatch of95fff2a in master.Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>Discussion:https://postgr.es/m/20230829.175615.682972421946735863.horikyota.ntt@gmail.comBackpatch-through: v16
1 parent5f38ff3 commitcd59fcf

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 of2 between 1 and 1024");
3359+
pg_fatal("argument of --wal-segsize must be a power oftwo 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 of2 between 1 and 1024");
298+
pg_fatal("argument of --wal-segsize must be a power oftwo between 1 and 1024");
299299
break;
300300

301301
default:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp