aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-08-09 15:30:45 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-08-09 15:30:45 -0400
commit4e15a4db5e65e43271f8d20750d6500ab12632d0 (patch)
tree453d328ca3280a79869da3d489a86a0703c87f89 /src/backend/access/transam/xlog.c
parentcff60f2dfa470d5736a19d36eb910844e31db764 (diff)
downloadpostgresql-4e15a4db5e65e43271f8d20750d6500ab12632d0.tar.gz
postgresql-4e15a4db5e65e43271f8d20750d6500ab12632d0.zip
Documentation improvement and minor code cleanups for the latch facility.
Improve the documentation around weak-memory-ordering risks, and do a pass of general editorialization on the comments in the latch code. Make the Windows latch code more like the Unix latch code where feasible; in particular provide the same Assert checks in both implementations. Fix poorly-placed WaitLatch call in syncrep.c. This patch resolves, for the moment, concerns around weak-memory-ordering bugs in latch-related code: we have documented the restrictions and checked that existing calls meet them. In 9.2 I hope that we will install suitable memory barrier instructions in SetLatch/ResetLatch, so that their callers don't need to be quite so careful.
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions