~brianaker/libmemcached/gear-clean

« back to all changes in this revision

Viewing changes to libmemcached/touch.cc

  • Committer: Continuous Integration
  • Date: 2013-10-11 10:57:29 UTC
  • mfrom: (1169.1.3 key-cleanup)
  • Revision ID: ci@tangent.org-20131011105729-icge7t4g8wr4g380
Merge lp:~brianaker/libmemcached/key-cleanup/ Build: jenkins-Libmemcached-369

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
    return rc;
125
125
  }
126
126
 
127
 
  if (memcached_failed(rc= memcached_validate_key_length(key_length, ptr->flags.binary_protocol)))
 
127
  if (memcached_failed(rc= memcached_key_test(*ptr, (const char **)&key, &key_length, 1)))
128
128
  {
129
 
    return rc;
 
129
    return memcached_set_error(*ptr, rc, MEMCACHED_AT);
130
130
  }
131
131
 
132
132
  uint32_t server_key= memcached_generate_hash_with_redistribution(ptr, group_key, group_key_length);