git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: e6fa73e) | patch
Move call to GetTopTransactionId() earlier in LockAcquire(),
2010年11月29日 01:10:56 +0000 (01:10 +0000)
2010年11月29日 01:10:56 +0000 (01:10 +0000)
commit 09425f89e764beabbdd30cc877b3de96f5d3d2b9
Move call to GetTopTransactionId() earlier in LockAcquire(),
removing an infrequently occurring race condition in Hot Standby.
An xid must be assigned before a lock appears in shared memory,
rather than immediately after, else GetRunningTransactionLocks()
may see InvalidTransactionId, causing assertion failures during
lock processing on standby.

Bug report and diagnosis by Fujii Masao, fix by me.
src/backend/storage/ipc/standby.c diff | blob | blame | history
src/backend/storage/lmgr/lock.c diff | blob | blame | history
src/include/storage/standby.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /