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:40:11 by Stephen R. van den Berg <srb@cuci.nl>
aac29783b75b52f2b15fee6488c9a61f1d74594b (
15
lines) (+
7
/-
8
)
[
Show
|
Annotate
]
Branch:
8.1
pgsql: Support spurious syncs in a stashed queue.
190:
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;
388:
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);