auto_response sets value to garbage if rc=NOT_FOUND

Bug #1220229 reported by TimBunce on 2013-09-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libmemcached
Undecided
Brian Aker

Bug Description

auto_response executes *value= instance->root->result.numeric_value; even when rc == NOT_FOUND.

The http://docs.libmemcached.org/memcached_auto.html docs only describe "If the object specified by key does not exist" behaviour for the memcached_*_with_initial variants. However the memcached_*_with_initial variants can't be used with the textual protocol (but that's not mentioned in the docs.)

(This caused a failure in Cache::Memcached::libmemcached https://rt.cpan.org/Ticket/Display.html?id=88376)

Related branches

Brian Aker (brianaker) on 2013-09-14
Changed in libmemcached:
assignee: nobody → Brian Aker (brianaker)
Brian Aker (brianaker) wrote :

  if (memcached_fatal(rc) or memcached_failed(rc))
  {
    assert(memcached_last_error(instance->root) != MEMCACHED_SUCCESS);
    *value= UINT64_MAX;
  }

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers