summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Deolasee2015-08-18 11:59:20 +0000
committerPavan Deolasee2015-08-21 06:57:52 +0000
commit4ae722921243fcda28b91a95d51f170e0a2943fc (patch)
treecf2a2320c7dbcdfb23759e3975e63866a0fedc87
parent5ce68d9e53a9a5c3e091e65985f7732494ca87ae (diff)
Wait for 10 seconds for consumers to finish before destroying shared q.
This matches with the comments and timeout in SharedQueueUnBind()
-rw-r--r--src/backend/executor/producerReceiver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/executor/producerReceiver.c b/src/backend/executor/producerReceiver.c
index 3b82a0acef..401a8349b7 100644
--- a/src/backend/executor/producerReceiver.c
+++ b/src/backend/executor/producerReceiver.c
@@ -161,7 +161,7 @@ producerDestroyReceiver(DestReceiver *self)
}
else
{
- pg_usleep(10000l);
+ pg_usleep(10*1000*1000l);
/*
* Do not wait for consumers that was not even connected after 10
* seconds after start waiting for their disconnection.