Roxen.git/
server/
base_server/
roxen.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2002-02-01
2002-02-01 16:53:53 by Henrik Grubbström (Grubba) <grubba@grubba.org>
2c426e95936485ecfabd16b1e33ba5e4b638264f (
4
lines) (+
3
/-
1
)
[
Show
|
Annotate
]
Branch:
5.2
Ported race-condition fix from Roxen 2.2.
Rev: server/base_server/roxen.pike:1.776
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.
775
2002/
01
/
31
12
:
05
:
06
grubba Exp $";
+
constant cvs_version="$Id: roxen.pike,v 1.
776
2002/
02/
01
16
:
53
:
53
grubba Exp $";
// The argument cache. Used by the image cache. ArgCache argcache;
3218:
int create_key( string long_key, string|void md, int|void index_id ) { if( !md ) md = md5(long_key);
+
LOCK();
array data = QUERY("SELECT id,contents FROM "+name+" WHERE md5=%s", md );