Roxen.git/
server/
base_server/
roxen.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2001-09-06
2001-09-06 14:19:20 by Per Hedbor <ph@opera.com>
63c456f513ac67c2c43da8548d8e0ecad5335dbe (
10
lines) (+
8
/-
2
)
[
Show
|
Annotate
]
Branch:
5.2
Added two more LOCK() in the argcache
Rev: server/base_server/roxen.pike:1.736
6:
// Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others. // ABS and suicide systems contributed freely by Francesco Chemolli
-
constant cvs_version="$Id: roxen.pike,v 1.
735
2001/09/06
12
:
26
:
43
per Exp $";
+
constant cvs_version="$Id: roxen.pike,v 1.
736
2001/09/06
14
:
19
:
20
per Exp $";
// The argument cache. Used by the image cache. ArgCache argcache;
3088:
string read_args( int id ) {
+
LOCK();
array res = QUERY("SELECT contents FROM "+name+" WHERE id="+id); if( sizeof(res) ) {
3119:
static int low_key_exists( string key ) {
-
return
sizeof( QUERY( "SELECT id FROM "+name+" WHERE id="+(int)key));
+
LOCK();
+
int res =
sizeof( QUERY( "SELECT id FROM "+name+" WHERE id="+(int)key));
+
// Fool optimizer.
+
if( res )
+
return res;
} string secret;