Skip to content

Commit 12a2544

Browse files
committed
Fix incorrect comments.
Commit 19dc233 introduced these comments. Michael Paquier noticed that one of them had a typo, but a bigger problem is that they were not an accurate description of what the code was doing. Patch by me.
1 parent 9fe3c64 commit 12a2544

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/backend/utils/adt/misc.c

+2-8
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)