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:44:10 by Stephen R. van den Berg <srb@cuci.nl>
cb81a897719317bb1f16bb7d39f4e036211e0d20 (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
master
pgsql: Drain portal queue deterministically.
2650:
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)