Roxen.git/
server/
base_server/
roxen.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2007-01-10
2007-01-10 13:17:43 by Martin Jonsson <marty@roxen.com>
796ebcfdc1bff79a926dfc929a8dcdd9e23499c2 (
9
lines) (+
5
/-
4
)
[
Show
|
Annotate
]
Branch:
5.2
Fixed potential race in restore_meta() in the image cache.
Rev: server/base_server/roxen.pike:1.955
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.
954
2006
/
12
/
21
17:
31:29
grubba
Exp $";
+
constant cvs_version="$Id: roxen.pike,v 1.
955
2007
/
01
/
10
13:
17:
43
marty
Exp $";
//! @appears roxen //!
3357:
static mapping restore_meta( string id, RequestID rid ) {
-
if( meta_cache[ id ] )
+
if(
array item =
meta_cache[ id ] )
{
-
meta_cache
[
id ][
1 ] = time(1); // Update cached atime.
-
return
meta_cache
[
id ][
0 ];
+
item
[ 1 ] = time(1); // Update cached atime.
+
return
item
[ 0 ];
} #ifdef ARG_CACHE_DEBUG