arthurnn / memcached

A Ruby interface to the libmemcached C client
Academic Free License v3.0
432 stars 125 forks source link

Multiget breaks if Marshal.load causes another memcached call before all the values are fetched. #88

Closed jason-o-matic closed 12 years ago

jason-o-matic commented 12 years ago

If it happens that Marshal.load causes a cache call (get, set, and add in my case), the multiget fails. It looks like it's because some state gets messed up by the intermediate call.

jason-o-matic commented 12 years ago

The fix is easy: https://github.com/expectedbehavior/memcached/commit/392ce057116d4de4a592b3096216c7710a7eedab

We're on an older version, but it should port easily.