forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit766571b
committed
Additional write barrier in AdvanceXLInsertBuffer().
First, mark the xlblocks member with InvalidXLogRecPtr, then issue awrite barrier, then initialize it. That ensures that the xlblocksmember doesn't appear valid while the contents are being initialized.In preparation for reading WAL buffer contents without a lock.Author: Bharath RupireddyDiscussion:https://postgr.es/m/CALj2ACVfFMfqD5oLzZSQQZWfXiJqd-NdX0_317veP6FuB31QWA@mail.gmail.comReviewed-by: Andres Freund1 parentc3a8e2a commit766571b
1 file changed
+8
-0
lines changedLines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1932 | 1932 |
| |
1933 | 1933 |
| |
1934 | 1934 |
| |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
1935 | 1943 |
| |
1936 | 1944 |
| |
1937 | 1945 |
| |
|
0 commit comments
Comments
(0)