2019-04-17
2019-04-17 15:03:57 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
83fabd6b28f252164927e0cf3e6c7e26608ba1ab
(25 lines)
(+13/-12)
[
Show
| Annotate
]
Branch: master
Sql: Protect lfuns.
147:
cb_backend = Pike.DefaultBackend; // DefaultBackend has started
}
- private void create() {
+ protected void create() {
atexit(_destruct);
// Run callbacks from our local_backend until DefaultBackend has started
cb_backend = local_backend = Pike.SmallBackend();
call_out(default_backend_runs, 0);
}
- private void _destruct() {
+ protected void _destruct() {
foreach (clients; proxy client; )
destruct(client);
}
342:
private conxion realbuffer;
- private void create(conxion _realbuffer) {
+ protected void create(conxion _realbuffer) {
realbuffer = _realbuffer;
}
448:
return 0;
}
- private void create() {
+ protected void create() {
i::create();
fillreadmux = MUTEX();
fillread = Thread.Condition();
686:
}
}
- private void _destruct() {
+ protected void _destruct() {
PD("%d>Close conxion %d\n", socket ? socket->query_fd() : -1, !!nostash);
catch(purge());
}
746:
destruct(this);
}
- private string _sprintf(int type) {
+ protected string _sprintf(int type) {
string res;
switch (type) {
case 'O':
764:
return res;
}
- private void create(proxy pgsqlsess, Thread.Queue _qportals, int nossl) {
+ protected void create(proxy pgsqlsess, Thread.Queue _qportals, int nossl) {
o::create();
qportals = _qportals;
synctransact = 1;
785: Inside #if defined(PG_DEBUGRACE)
class conxsess {
final conxion chain;
- private void create(conxion parent) {
+ protected void create(conxion parent) {
if (parent->started)
werror("Overwriting conxsess %s %s\n",
describe_backtrace(({"new ", backtrace()[..<1]})),
799: Inside #if defined(PG_DEBUGRACE)
chain = 0;
}
- private void _destruct() {
+ protected void _destruct() {
if (chain)
werror("Untransmitted conxsess %s\n",
describe_backtrace(({"", backtrace()[..<1]})));
1939:
final MUTEX shortmux;
final int readyforquerycount;
- private string _sprintf(int type) {
+ protected string _sprintf(int type) {
string res;
switch (type) {
case 'O':
1951:
return res;
}
- private void create(void|string host, void|string database,
+ protected void create(void|string host, void|string database,
void|string user, void|string pass,
void|mapping(string:mixed) options) {
if (this::pass = pass) {
2795:
destruct(waitforauthready);
}
- private void _destruct() {
+ protected void _destruct() {
string errstring;
mixed err = catch(close());
clients[this] = 0;