mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 04:35:45 -04:00
Fix incorrect comments.
Commit 19dc233c32 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.
This commit is contained in:
parent
9fe3c644a7
commit
12a2544cb5
1 changed files with 2 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue