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

Commit12a2544

Browse files
committed
Fix incorrect comments.
Commit19dc233 introduced thesecomments. Michael Paquier noticed that one of them had a typo, buta bigger problem is that they were not an accurate description ofwhat the code was doing.Patch by me.
1 parent9fe3c64 commit12a2544

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

‎src/backend/utils/adt/misc.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -939,10 +939,7 @@ pg_current_logfile(PG_FUNCTION_ARGS)
939939
log_filepath=strchr(lbuffer,' ');
940940
if (log_filepath==NULL)
941941
{
942-
/*
943-
* No space found, file content is corrupted. Return NULL to the
944-
* caller and inform him on the situation.
945-
*/
942+
/* Uh oh. No newline found, so file content is corrupted. */
946943
elog(ERROR,
947944
"missing space character in \"%s\"",LOG_METAINFO_DATAFILE);
948945
break;
@@ -953,10 +950,7 @@ pg_current_logfile(PG_FUNCTION_ARGS)
953950
nlpos=strchr(log_filepath,'\n');
954951
if (nlpos==NULL)
955952
{
956-
/*
957-
* No newlinei found, file content is corrupted. Return NULL to
958-
* the caller and inform him on the situation.
959-
*/
953+
/* Uh oh. No newline found, so file content is corrupted. */
960954
elog(ERROR,
961955
"missing newline character in \"%s\"",LOG_METAINFO_DATAFILE);
962956
break;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp