Commit 12a2544c authored by Robert Haas's avatar Robert Haas

Fix incorrect comments.

Commit 19dc233c 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.
parent 9fe3c644
...@@ -939,10 +939,7 @@ pg_current_logfile(PG_FUNCTION_ARGS) ...@@ -939,10 +939,7 @@ pg_current_logfile(PG_FUNCTION_ARGS)
log_filepath = strchr(lbuffer, ' '); log_filepath = strchr(lbuffer, ' ');
if (log_filepath == NULL) if (log_filepath == NULL)
{ {
/* /* Uh oh. No newline found, so file content is corrupted. */
* No space found, file content is corrupted. Return NULL to the
* caller and inform him on the situation.
*/
elog(ERROR, elog(ERROR,
"missing space character in \"%s\"", LOG_METAINFO_DATAFILE); "missing space character in \"%s\"", LOG_METAINFO_DATAFILE);
break; break;
...@@ -953,10 +950,7 @@ pg_current_logfile(PG_FUNCTION_ARGS) ...@@ -953,10 +950,7 @@ pg_current_logfile(PG_FUNCTION_ARGS)
nlpos = strchr(log_filepath, '\n'); nlpos = strchr(log_filepath, '\n');
if (nlpos == NULL) if (nlpos == NULL)
{ {
/* /* Uh oh. No newline found, so file content is corrupted. */
* No newlinei found, file content is corrupted. Return NULL to
* the caller and inform him on the situation.
*/
elog(ERROR, elog(ERROR,
"missing newline character in \"%s\"", LOG_METAINFO_DATAFILE); "missing newline character in \"%s\"", LOG_METAINFO_DATAFILE);
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment