git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: ec3d976) | patch
Recursively fsync() the data directory after a crash.
Mon, 4 May 2015 18:13:53 +0000 (14:13 -0400)
Mon, 4 May 2015 18:13:53 +0000 (14:13 -0400)
commit 2ce439f3379aed857517c8ce207485655000fc8e
Recursively fsync() the data directory after a crash.

Otherwise, if there's another crash, some writes from after the first
crash might make it to disk while writes from before the crash fail
to make it to disk. This could lead to data corruption.

Back-patch to all supported versions.

Abhijit Menon-Sen, reviewed by Andres Freund and slightly revised
by me.
src/backend/access/transam/xlog.c diff | blob | blame | history
src/backend/storage/file/fd.c diff | blob | blame | history
src/include/storage/fd.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /