OSDN Git Service

Relax locking during GetCurrentVirtualXIDs(). Earlier improvements
authorSimon Riggs <simon@2ndQuadrant.com>
Wed, 21 Apr 2010 19:08:14 +0000 (19:08 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Wed, 21 Apr 2010 19:08:14 +0000 (19:08 +0000)
commit0192abc4d7792117d53c6c894eeeaa83b02802c5
tree9a5c501589b9166cf594f4e4becf589267c8a364
parentbc2b85d90481c317c7d4efcf5dfc8c134f6105f9
Relax locking during GetCurrentVirtualXIDs(). Earlier improvements
to handling of btree delete records mean that all snapshot
conflicts on standby now have a valid, useful latestRemovedXid.
Our earlier approach using LW_EXCLUSIVE was useful when we didnt
always have a valid value, though is no longer useful or necessary.
Asserts added to code path to prove and ensure this is the case.
This will reduce contention and improve performance of larger Hot
Standby servers.
src/backend/storage/ipc/procarray.c
src/backend/storage/ipc/standby.c