summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistproc.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2015-09-03 13:10:53 -0400
committerRobert Haas <rhaas@postgresql.org>2015-09-03 13:19:15 -0400
commit4aec49899e5782247e134f94ce1c6ee926f88e1c (patch)
treec01a098b379077cf320910e25fe46a976fc4f58e /src/backend/access/gist/gistproc.c
parent1ea5ce5c5f204918b8a9fa6eaa8f3f1374aa8aec (diff)
downloadpostgresql-4aec49899e5782247e134f94ce1c6ee926f88e1c.tar.gz
Assorted code review for recent ProcArrayLock patch.
Post-commit review by Andres Freund discovered a couple of concurrency bugs in the original patch: specifically, if the leader cleared a follower's XID before it reached PGSemaphoreLock, the semaphore would be left in the wrong state; and if another process did PGSemaphoreUnlock for some unrelated reason, we might resume execution before the fact that our XID was cleared was globally visible. Also, improve the wording of some comments, rename nextClearXidElem to firstClearXidElem in PROC_HDR for clarity, and drop some volatile qualifiers that aren't necessary. Amit Kapila, reviewed and slightly revised by me.
Diffstat (limited to 'src/backend/access/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions