summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backend/replication/syncrep.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/backend/replication/syncrep.c b/src/backend/replication/syncrep.c
index a3319642c6..f6cabf3f64 100644
--- a/src/backend/replication/syncrep.c
+++ b/src/backend/replication/syncrep.c
@@ -253,7 +253,14 @@ SyncRepWaitForLSN(XLogRecPtr XactCommitLSN)
* holding SyncRepLock, because any walsenders will ignore us anyway when
* we're not on the queue.
*/
+#ifdef NOT_USED
+ /*
+ * We are hitting this Assert too often in our tests. This is a PG bug and
+ * has been reported to the list. But turn this off until it gets fixed in
+ * the upstream branch
+ */
Assert(SHMQueueIsDetached(&(MyProc->syncRepLinks)));
+#endif
MyProc->syncRepState = SYNC_REP_NOT_WAITING;
MyProc->waitLSN.xlogid = 0;
MyProc->waitLSN.xrecoff = 0;