]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix bogus log message when starting from a cleanly shut down state.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 16 Feb 2022 21:15:08 +0000 (23:15 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 16 Feb 2022 21:15:08 +0000 (23:15 +0200)
commit46208923446651a58c49115d17b4de6da4934c71
treea4615d2cc40cb6c80f3abc55f81154fb897bbbd8
parent01ad1c953032ea2b88893d6a2f50fb4a8fea2873
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
src/backend/access/transam/xlogrecovery.c