projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fix issue where stale result set might end up being read (this has never been reporte...
[m6w6/libmemcached]
/
libmemcached
/
auto.cc
diff --git
a/libmemcached/auto.cc
b/libmemcached/auto.cc
index 9d85ad434858897556244f0447f0564cfddadaf5..df4ceb2fd2f1025f5415e05e3a05675a821570ee 100644
(file)
--- a/
libmemcached/auto.cc
+++ b/
libmemcached/auto.cc
@@
-166,6
+166,12
@@
static memcached_return_t increment_decrement_by_key(const protocol_binary_comma
return rc;
}
return rc;
}
+ if (memcached_is_encrypted(memc))
+ {
+ return memcached_set_error(*memc, MEMCACHED_NOT_SUPPORTED, MEMCACHED_AT,
+ memcached_literal_param("Operation not allowed while encyrption is enabled"));
+ }
+
if (memcached_failed(rc= memcached_key_test(*memc, (const char **)&key, &key_length, 1)))
{
return memcached_last_error(memc);
if (memcached_failed(rc= memcached_key_test(*memc, (const char **)&key, &key_length, 1)))
{
return memcached_last_error(memc);
@@
-219,6
+225,12
@@
static memcached_return_t increment_decrement_with_initial_by_key(const protocol
return rc;
}
return rc;
}
+ if (memcached_is_encrypted(memc))
+ {
+ return memcached_set_error(*memc, MEMCACHED_NOT_SUPPORTED, MEMCACHED_AT,
+ memcached_literal_param("Operation not allowed while encyrption is enabled"));
+ }
+
if (memcached_failed(rc= memcached_key_test(*memc, (const char **)&key, &key_length, 1)))
{
return memcached_last_error(memc);
if (memcached_failed(rc= memcached_key_test(*memc, (const char **)&key, &key_length, 1)))
{
return memcached_last_error(memc);