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

Commit5f1b826

Browse files
committed
pg_resetwal: Rename function to avoid potential conflict
ReadControlFile() here conflicts with a function of the same name inxlog.c. There is no actual conflict right now, but sincepg_resetwal.c reaches deep inside backend headers, it's possible inthe future.Discussion:https://www.postgresql.org/message-id/e8f86ba5-48f1-a80a-7f1d-b76bcb9c5c47@2ndquadrant.com
1 parentec4a785 commit5f1b826

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/bin/pg_resetwal/pg_resetwal.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static intWalSegSz;
7676
staticintset_wal_segsize;
7777

7878
staticvoidCheckDataVersion(void);
79-
staticboolReadControlFile(void);
79+
staticboolread_controlfile(void);
8080
staticvoidGuessControlValues(void);
8181
staticvoidPrintControlValues(boolguessed);
8282
staticvoidPrintNewControlValues(void);
@@ -393,7 +393,7 @@ main(int argc, char *argv[])
393393
/*
394394
* Attempt to read the existing pg_control file
395395
*/
396-
if (!ReadControlFile())
396+
if (!read_controlfile())
397397
GuessControlValues();
398398

399399
/*
@@ -578,7 +578,7 @@ CheckDataVersion(void)
578578
* to the current format. (Currently we don't do anything of the sort.)
579579
*/
580580
staticbool
581-
ReadControlFile(void)
581+
read_controlfile(void)
582582
{
583583
intfd;
584584
intlen;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp