pike.git/
lib/
modules/
Sql.pmod/
pgsql.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2015-12-09
2015-12-09 00:54:57 by Stephen R. van den Berg <srb@cuci.nl>
32eee73f106e6e9dde2ffc5e831a78df4e438d8c (
4
lines) (+
2
/-
2
)
[
Show
|
Annotate
]
Branch:
8.1
pgsql: Avoid race condition for parallel queries, do not reset counters.
76:
final mapping(string:string) _runtimeparameter; final mapping(string:mapping(string:mixed)) _prepareds=([]); private int pstmtcount;
-
private int ptstmtcount; // Periodically one would like to reset
this
+
private int ptstmtcount; // Periodically one would like to reset
these
// but checking when this is safe to do // probably is more costly than the gain final int _pportalcount;
1871:
} if(forcecache!=1 && .pgsql_util.createprefix->match(q)) { invalidatecache=1; // Flush cache on CREATE
-
pstmtcount=0; // Reset prepared statementnos
+
tp=UNDEFINED; } else _prepareds[q]=tp=([]);