Skip to content
Snippets Groups Projects
Commit acdac0b8 authored by Stephen R. van den Berg's avatar Stephen R. van den Berg
Browse files

pgsql: Drain portal queue to completion.

parent e63f82c6
No related branches found
No related tags found
No related merge requests found
...@@ -2444,8 +2444,8 @@ class proxy { ...@@ -2444,8 +2444,8 @@ class proxy {
throwdelayederror(this); throwdelayederror(this);
{ {
Thread.MutexKey lock; Thread.MutexKey lock;
if (qportals && qportals->size()) while (qportals && qportals->size())
catch(cancelquery()); sleep(0.1, 1); // Drain portal queue to completion
if (unnamedstatement) if (unnamedstatement)
termlock = unnamedstatement->lock(1); termlock = unnamedstatement->lock(1);
if (c) // Prevent trivial backtraces if (c) // Prevent trivial backtraces
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment