mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Reformat code comment
Discussion: https://www.postgresql.org/message-id/e8f86ba5-48f1-a80a-7f1d-b76bcb9c5c47@2ndquadrant.com
This commit is contained in:
@ -6297,16 +6297,17 @@ StartupXLOG(void)
|
|||||||
|
|
||||||
/*----------
|
/*----------
|
||||||
* If we previously crashed, perform a couple of actions:
|
* If we previously crashed, perform a couple of actions:
|
||||||
* - The pg_wal directory may still include some temporary WAL segments
|
*
|
||||||
* used when creating a new segment, so perform some clean up to not
|
* - The pg_wal directory may still include some temporary WAL segments
|
||||||
* bloat this path. This is done first as there is no point to sync this
|
* used when creating a new segment, so perform some clean up to not
|
||||||
* temporary data.
|
* bloat this path. This is done first as there is no point to sync
|
||||||
* - There might be data which we had written, intending to fsync it,
|
* this temporary data.
|
||||||
* but which we had not actually fsync'd yet. Therefore, a power failure
|
*
|
||||||
* in the near future might cause earlier unflushed writes to be lost,
|
* - There might be data which we had written, intending to fsync it, but
|
||||||
* even though more recent data written to disk from here on would be
|
* which we had not actually fsync'd yet. Therefore, a power failure in
|
||||||
* persisted. To avoid that, fsync the entire data directory.
|
* the near future might cause earlier unflushed writes to be lost, even
|
||||||
*---------
|
* though more recent data written to disk from here on would be
|
||||||
|
* persisted. To avoid that, fsync the entire data directory.
|
||||||
*/
|
*/
|
||||||
if (ControlFile->state != DB_SHUTDOWNED &&
|
if (ControlFile->state != DB_SHUTDOWNED &&
|
||||||
ControlFile->state != DB_SHUTDOWNED_IN_RECOVERY)
|
ControlFile->state != DB_SHUTDOWNED_IN_RECOVERY)
|
||||||
|
Reference in New Issue
Block a user