Changeset 169 for eaccelerator/trunk/cache.c
- Timestamp:
- 02/20/06 23:36:45 (3 years ago)
- Files:
-
- eaccelerator/trunk/cache.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/cache.c
r123 r169 210 210 { 211 211 mm_user_cache_entry *p, *q; 212 unsigned int slot ;212 unsigned int slot, hv; 213 213 long size; 214 214 int use_shm = 1; … … 306 306 */ 307 307 slot = q->hv & MM_USER_HASH_MAX; 308 hv = q->hv; 308 309 EACCELERATOR_LOCK_RW (); 309 310 eaccelerator_mm_instance->user_hash_cnt++; … … 312 313 p = q->next; 313 314 while (p != NULL) { 314 if ((p->hv == q->hv) && (strcmp (p->key, xkey) == 0)) {315 if ((p->hv == hv) && (strcmp (p->key, xkey) == 0)) { 315 316 eaccelerator_mm_instance->user_hash_cnt--; 316 317 q->next = p->next;