projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
f859a9f
)
fix the incr/decr operation connection closed bug
author
Yin Chen
<subdragon@gmail.com>
Fri, 29 Aug 2008 06:33:04 +0000
(14:33 +0800)
committer
Yin Chen
<subdragon@gmail.com>
Fri, 29 Aug 2008 06:33:04 +0000
(14:33 +0800)
libmemcached/memcached_response.c
patch
|
blob
|
history
diff --git
a/libmemcached/memcached_response.c
b/libmemcached/memcached_response.c
index 2c178e4948bb6995dd34324abdc91f4db63eef1f..f81f51548dbe58be3788513188be5cfc2ecb080b 100644
(file)
--- a/
libmemcached/memcached_response.c
+++ b/
libmemcached/memcached_response.c
@@
-81,6
+81,7
@@
memcached_return memcached_response(memcached_server_st *ptr,
memcached_server_response_decrement(ptr);
}
+ uint64_t auto_return_value= 0;
switch(buffer[0])
{
case 'V': /* VALUE || VERSION */
@@
-167,6
+168,8
@@
memcached_return memcached_response(memcached_server_st *ptr,
memcached_io_reset(ptr);
return MEMCACHED_CLIENT_ERROR;
default:
+ if(sscanf(buffer, "%lld", &auto_return_value) == 1)
+ return MEMCACHED_SUCCESS;
memcached_io_reset(ptr);
return MEMCACHED_UNKNOWN_READ_FAILURE;