projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
06d0eae
)
Clean up style in auto.
author
Brian Aker
<brian@tangent.org>
Tue, 27 Dec 2011 04:53:35 +0000
(20:53 -0800)
committer
Brian Aker
<brian@tangent.org>
Tue, 27 Dec 2011 04:53:35 +0000
(20:53 -0800)
libmemcached/auto.cc
patch
|
blob
|
history
diff --git
a/libmemcached/auto.cc
b/libmemcached/auto.cc
index 517e5b96fb8faf96f23ee1c50a7ad2544206baad..8879634fd9e333e7184d142a3ae3cd98d4b3e273 100644
(file)
--- a/
libmemcached/auto.cc
+++ b/
libmemcached/auto.cc
@@
-108,10
+108,14
@@
static memcached_return_t binary_incr_decr(memcached_st *ptr, uint8_t cmd,
if (no_reply)
{
if(cmd == PROTOCOL_BINARY_CMD_DECREMENT)
if (no_reply)
{
if(cmd == PROTOCOL_BINARY_CMD_DECREMENT)
+ {
cmd= PROTOCOL_BINARY_CMD_DECREMENTQ;
cmd= PROTOCOL_BINARY_CMD_DECREMENTQ;
+ }
if(cmd == PROTOCOL_BINARY_CMD_INCREMENT)
if(cmd == PROTOCOL_BINARY_CMD_INCREMENT)
+ {
cmd= PROTOCOL_BINARY_CMD_INCREMENTQ;
cmd= PROTOCOL_BINARY_CMD_INCREMENTQ;
+ }
}
protocol_binary_request_incr request= {}; // = {.bytes= {0}};
}
protocol_binary_request_incr request= {}; // = {.bytes= {0}};
@@
-254,12
+258,6
@@
memcached_return_t memcached_increment_with_initial(memcached_st *ptr,
time_t expiration,
uint64_t *value)
{
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);
return memcached_increment_with_initial_by_key(ptr, key, key_length,
key, key_length,
offset, initial, expiration, value);
@@
-318,12
+316,6
@@
memcached_return_t memcached_decrement_with_initial(memcached_st *ptr,
time_t expiration,
uint64_t *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);
return memcached_decrement_with_initial_by_key(ptr, key, key_length,
key, key_length,
offset, initial, expiration, value);
@@
-346,17
+338,16
@@
memcached_return_t memcached_decrement_with_initial_by_key(memcached_st *ptr,
}
memcached_return_t rc;
}
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;
}
{
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;
}
{
return rc;
}
-
LIBMEMCACHED_MEMCACHED_INCREMENT_WITH_INITIAL_START();
if (ptr->flags.binary_protocol)
{
LIBMEMCACHED_MEMCACHED_INCREMENT_WITH_INITIAL_START();
if (ptr->flags.binary_protocol)
{