Wait for 10 seconds for consumers to finish before destroying shared q.
authorPavan Deolasee <[email protected]>
Tue, 18 Aug 2015 11:59:20 +0000 (17:29 +0530)
committerPavan Deolasee <[email protected]>
Tue, 18 Aug 2015 11:59:20 +0000 (17:29 +0530)
This matches with the comments and timeout in SharedQueueUnBind()

src/backend/executor/producerReceiver.c

index 3b82a0acefd0d68ace38115a6718818afac6a70a..401a8349b7ad9fc7c979462e384b974532bf55a2 100644 (file)
@@ -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.