if (no_reply)
{
if(cmd == PROTOCOL_BINARY_CMD_DECREMENT)
+ {
cmd= PROTOCOL_BINARY_CMD_DECREMENTQ;
+ }
if(cmd == PROTOCOL_BINARY_CMD_INCREMENT)
+ {
cmd= PROTOCOL_BINARY_CMD_INCREMENTQ;
+ }
}
protocol_binary_request_incr request= {}; // = {.bytes= {0}};
time_t expiration,
uint64_t *value)
{
- uint64_t local_value;
- if (value == NULL)
- {
- value= &local_value;
- }
-
return memcached_increment_with_initial_by_key(ptr, key, key_length,
key, key_length,
offset, initial, expiration, value);
time_t expiration,
uint64_t *value)
{
- uint64_t local_value;
- if (value == NULL)
- {
- value= &local_value;
- }
-
return memcached_decrement_with_initial_by_key(ptr, key, key_length,
key, key_length,
offset, initial, expiration, value);
}
memcached_return_t rc;
- if (memcached_failed(rc= memcached_validate_key_length(key_length, ptr->flags.binary_protocol)))
+ if (memcached_failed(rc= initialize_query(ptr)))
{
return rc;
}
- if (memcached_failed(rc= initialize_query(ptr)))
+ if (memcached_failed(rc= memcached_validate_key_length(key_length, ptr->flags.binary_protocol)))
{
return rc;
}
-
LIBMEMCACHED_MEMCACHED_INCREMENT_WITH_INITIAL_START();
if (ptr->flags.binary_protocol)
{