Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9745f93

Browse filesBrowse files
committed
1 parent 5f1b826 commit 9745f93
Copy full SHA for 9745f93

File tree

Expand file treeCollapse file tree

1 file changed

+11
-10
lines changed
Filter options
  • src/backend/access/transam
Expand file treeCollapse file tree

1 file changed

+11
-10
lines changed

‎src/backend/access/transam/xlog.c

Copy file name to clipboardExpand all lines: src/backend/access/transam/xlog.c
+11-10Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6297,16 +6297,17 @@ StartupXLOG(void)
62976297

62986298
/*----------
62996299
* If we previously crashed, perform a couple of actions:
6300-
* - The pg_wal directory may still include some temporary WAL segments
6301-
* used when creating a new segment, so perform some clean up to not
6302-
* bloat this path. This is done first as there is no point to sync this
6303-
* temporary data.
6304-
* - There might be data which we had written, intending to fsync it,
6305-
* but which we had not actually fsync'd yet. Therefore, a power failure
6306-
* in the near future might cause earlier unflushed writes to be lost,
6307-
* even though more recent data written to disk from here on would be
6308-
* persisted. To avoid that, fsync the entire data directory.
6309-
*---------
6300+
*
6301+
* - The pg_wal directory may still include some temporary WAL segments
6302+
* used when creating a new segment, so perform some clean up to not
6303+
* bloat this path. This is done first as there is no point to sync
6304+
* this temporary data.
6305+
*
6306+
* - There might be data which we had written, intending to fsync it, but
6307+
* which we had not actually fsync'd yet. Therefore, a power failure in
6308+
* the near future might cause earlier unflushed writes to be lost, even
6309+
* though more recent data written to disk from here on would be
6310+
* persisted. To avoid that, fsync the entire data directory.
63106311
*/
63116312
if (ControlFile->state != DB_SHUTDOWNED &&
63126313
ControlFile->state != DB_SHUTDOWNED_IN_RECOVERY)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.