projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Update for storage to now use vector
[m6w6/libmemcached]
/
libmemcached
/
exist.cc
diff --git
a/libmemcached/exist.cc
b/libmemcached/exist.cc
index b68ba466db760fab7683c66d2c61c5a884575a69..ff0c1b42bfb05171fdb7eb7a239d0c3c30da942f 100644
(file)
--- a/
libmemcached/exist.cc
+++ b/
libmemcached/exist.cc
@@
-58,14
+58,20
@@
static memcached_return_t ascii_exist(memcached_st *memc, memcached_server_write
rc= memcached_response(instance, buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, NULL);
if (rc == MEMCACHED_NOTSTORED)
rc= memcached_response(instance, buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, NULL);
if (rc == MEMCACHED_NOTSTORED)
+ {
rc= MEMCACHED_SUCCESS;
rc= MEMCACHED_SUCCESS;
+ }
if (rc == MEMCACHED_STORED)
if (rc == MEMCACHED_STORED)
+ {
rc= MEMCACHED_NOTFOUND;
rc= MEMCACHED_NOTFOUND;
+ }
}
if (rc == MEMCACHED_WRITE_FAILURE)
}
if (rc == MEMCACHED_WRITE_FAILURE)
+ {
memcached_io_reset(instance);
memcached_io_reset(instance);
+ }
return rc;
}
return rc;
}