summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Deolasee2014-10-20 05:11:00 +0000
committerPavan Deolasee2015-04-15 05:41:30 +0000
commit44ae0e12d9847538a36706d78bf7c8f210f950fb (patch)
treea07fd869d7e97dc25aa1624ff959637f2c4a6e57
parentb55467fdd13be7aeac1f1a200e100f6172f7c576 (diff)
Skip an assertion which is known to give false positives in Postgres.
Discussion regarding the same is opened on PG forum and patch is expected to get committed soon
-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;