Closed (fixed)
Project:
Memcache API and Integration
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2010 at 15:33 UTC
Updated:
14 Oct 2010 at 20:10 UTC
I've had problems with wildcard flushes not working satisfactory. I've tracked the source of the problem to the implementation of memcache_multihash_cid.
The problem is that results are cached in the static array $hashes using only $cid as key. This causes incorrect behavior when subsequent calls are made with identical $cid but different $table. The second request will receive all the hashes of the first request which is wrong.
I've written a patch for 6-1 that fixes this and solves my problems with wildcard flushes. The code in 7-1 is similar and also in need of similar patching.
| Comment | File | Size | Author |
|---|---|---|---|
| fix-collisions-in-multihash-cid.patch | 961 bytes | jkarlsson |
Comments
Comment #1
jeremy commentedGood catch!
Fix committed in 6.x.1-x-dev:
http://drupal.org/cvs?commit=430234
And 7.x-1.x-dev:
http://drupal.org/cvs?commit=430238
Thanks!