pike.git/
lib/
modules/
Sql.pmod/
pgsql_util.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2018-05-07
2018-05-07 08:52:06 by Stephen R. van den Berg <srb@cuci.nl>
4177d3f53dcf4a61856b9d9a02bfb40285123dc0 (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
8.0
pgsql: Drain portal queue deterministically.
2468:
final void close() { throwdelayederror(this); {
-
Thread.MutexKey lock
= shortmux->lock()
;
-
portalsinflight->wait_till_drained(lock); // Drain portal queue to completion
-
lock = 0;
+
Thread.MutexKey lock;
if (unnamedstatement) termlock = unnamedstatement->lock(1);
-
+
foreach (c->runningportals; Result result; )
+
catch(result->status_command_complete());
if (c) // Prevent trivial backtraces c->close(); if (unnamedstatement)