summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorPeter Eisentraut2017-05-01 14:18:09 +0000
committerPeter Eisentraut2017-05-01 14:18:09 +0000
commit9414e41ea703ea5fcc288bcf7dc000e53306896b (patch)
tree974069d514fb35f6c294f3e7c94dcfd2b3231fdf /src/include
parente180c8aa8caf5c55a273d4a8e6092e77ff3cff10 (diff)
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>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/replication/logicallauncher.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/replication/logicallauncher.h b/src/include/replication/logicallauncher.h
index 0c2bf03a5f..fb3c2f5370 100644
--- a/src/include/replication/logicallauncher.h
+++ b/src/include/replication/logicallauncher.h
@@ -22,6 +22,6 @@ extern Size ApplyLauncherShmemSize(void);
extern void ApplyLauncherShmemInit(void);
extern void ApplyLauncherWakeupAtCommit(void);
-extern void AtCommit_ApplyLauncher(void);
+extern void AtEOXact_ApplyLauncher(bool isCommit);
#endif /* LOGICALLAUNCHER_H */