diff options
author | Tom Lane | 2006-01-21 04:38:54 +0000 |
---|---|---|
committer | Tom Lane | 2006-01-21 04:38:54 +0000 |
commit | 3cbc8b6fb483ae4bf3011abe49030cb057a2722b (patch) | |
tree | b41630ece8bea8f65a3e2990fcf0e28bf5c8430f /src/test | |
parent | a6cc7db9a67663d59ceb6328d2b0ccea7b384ef6 (diff) |
Repair longstanding bug in slru/clog logic: it is possible for two backends
to try to create a log segment file concurrently, but the code erroneously
specified O_EXCL to open(), resulting in a needless failure. Before 7.4,
it was even a PANIC condition :-(. Correct code is actually simpler than
what we had, because we can just say O_CREAT to start with and not need a
second open() call. I believe this accounts for several recent reports of
hard-to-reproduce "could not create file ...: File exists" errors in both
pg_clog and pg_subtrans.
Diffstat (limited to 'src/test')
0 files changed, 0 insertions, 0 deletions