pike.git/
lib/
modules/
Sql.pmod/
pgsql_util.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2017-07-03
2017-07-03 22:38:34 by Stephen R. van den Berg <srb@cuci.nl>
04e6364af73922fa21f53a9a01b9589562abdbe7 (
15
lines) (+
7
/-
8
)
[
Show
|
Annotate
]
Branch:
8.0
pgsql: Support spurious syncs in a stashed queue.
189:
final void sendcmd(int mode,void|sql_result portal) { Thread.MutexKey lock=realbuffer->shortmux->lock();
-
if(portal)
{
+
if
(portal)
realbuffer->stashqueue->write(portal); if (mode == SYNCSEND) { add(PGSYNC); realbuffer->stashqueue->write(1); mode = SENDOUT; // Demote it to prevent an extra SYNC upon stashflush }
-
}
+
realbuffer->stash->add(this);
-
PD("%d>
Got
stash
mode %d > %d\n",
+
PD("%d>
Stashed
mode %d > %d\n",
realbuffer->socket->query_fd(), mode, realbuffer->stashflushmode); if (mode > realbuffer->stashflushmode) realbuffer->stashflushmode = mode;
387:
PD("%d>Skip flush %d Queue %O\n", socket->query_fd(), mode, (string)this); break outer;
-
case FLUSHLOGSEND:
+
case FLUSHSEND: PD("Flush\n"); add(PGFLUSH);