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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: e180c8a) | patch
Fix logical replication launcher wake up and reset
Mon, 1 May 2017 14:18:09 +0000 (10:18 -0400)
Mon, 1 May 2017 14:18:09 +0000 (10:18 -0400)
commit 9414e41ea703ea5fcc288bcf7dc000e53306896b
Fix logical replication launcher wake up and reset

After the logical replication launcher was told to wake up at
commit (for example, by a CREATE SUBSCRIPTION command), the flag to wake
up was not reset, so it would be woken up at every following commit as
well. So fix that by resetting the flag.

Also, we don't need to wake up anything if the transaction was rolled
back. Just reset the flag in that case.

Author: Masahiko Sawada <sawada.mshk@gmail.com>
Reported-by: Fujii Masao <masao.fujii@gmail.com>
src/backend/access/transam/xact.c diff | blob | blame | history
src/backend/replication/logical/launcher.c diff | blob | blame | history
src/include/replication/logicallauncher.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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