aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/misc.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2017-03-06 13:10:55 -0500
committerRobert Haas <rhaas@postgresql.org>2017-03-06 13:11:49 -0500
commit12a2544cb5f9e1f8541d1b941da6d9dae15f50a5 (patch)
tree947bd94c8ecaf0ff628978334c7433e6c2453a83 /src/backend/utils/adt/misc.c
parent9fe3c644a73198941e9a502958c24727dc4a6434 (diff)
downloadpostgresql-12a2544cb5f9e1f8541d1b941da6d9dae15f50a5.tar.gz
postgresql-12a2544cb5f9e1f8541d1b941da6d9dae15f50a5.zip
Fix incorrect comments.
Commit 19dc233c32f2900e57b8da4f41c0f662ab42e080 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.
Diffstat (limited to 'src/backend/utils/adt/misc.c')
-rw-r--r--src/backend/utils/adt/misc.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/backend/utils/adt/misc.c b/src/backend/utils/adt/misc.c
index ff6a25d2b60..869c3bd7fa5 100644
--- a/src/backend/utils/adt/misc.c
+++ b/src/backend/utils/adt/misc.c
@@ -939,10 +939,7 @@ pg_current_logfile(PG_FUNCTION_ARGS)
log_filepath = strchr(lbuffer, ' ');
if (log_filepath == NULL)
{
- /*
- * No space found, file content is corrupted. Return NULL to the
- * caller and inform him on the situation.
- */
+ /* Uh oh. No newline found, so file content is corrupted. */
elog(ERROR,
"missing space character in \"%s\"", LOG_METAINFO_DATAFILE);
break;
@@ -953,10 +950,7 @@ pg_current_logfile(PG_FUNCTION_ARGS)
nlpos = strchr(log_filepath, '\n');
if (nlpos == NULL)
{
- /*
- * No newlinei found, file content is corrupted. Return NULL to
- * the caller and inform him on the situation.
- */
+ /* Uh oh. No newline found, so file content is corrupted. */
elog(ERROR,
"missing newline character in \"%s\"", LOG_METAINFO_DATAFILE);
break;