pgsql: Fix bogus log message when starting from a cleanly shut down sta

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix bogus log message when starting from a cleanly shut down sta
Date: 2022-02-16 21:15:44
Message-ID: E1nKReK-0008D5-9b@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix bogus log message when starting from a cleanly shut down state.

In commit 70e81861fa to split xlog.c, I moved the startup code that
updates the state in the control file and prints out the "database
system was not properly shut down" message to the log, but I
accidentally removed the "if (InRecovery)" check around it. As a
result, that message was printed even if the system was cleanly shut
down, also during 'initdb'.

Discussion: https://www.postgresql.org/message-id/3357075.1645031062@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/46208923446651a58c49115d17b4de6da4934c71

Modified Files
--------------
src/backend/access/transam/xlogrecovery.c | 118 ++++++++++++++++--------------
1 file changed, 62 insertions(+), 56 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2022-02-17 00:24:23 Re: pgsql: Add TAP test to automate the equivalent of check_guc
Previous Message Tom Lane 2022-02-16 16:13:35 Re: pgsql: Remove IS_AF_UNIX macro