projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fixes for Fedora 17.
[m6w6/libmemcached]
/
libmemcached
/
auto.cc
diff --git
a/libmemcached/auto.cc
b/libmemcached/auto.cc
index 9d85ad434858897556244f0447f0564cfddadaf5..b75ae38d0ee3e9d694ee2b3a0874ffbd5b244542 100644
(file)
--- a/
libmemcached/auto.cc
+++ b/
libmemcached/auto.cc
@@
-83,7
+83,7
@@
static memcached_return_t text_incr_decr(memcached_server_write_instance_st inst
{ memcached_literal_param("incr ") },
{ memcached_array_string(instance->root->_namespace), memcached_array_size(instance->root->_namespace) },
{ key, key_length },
{ memcached_literal_param("incr ") },
{ memcached_array_string(instance->root->_namespace), memcached_array_size(instance->root->_namespace) },
{ key, key_length },
- { buffer, s
end_length
},
+ { buffer, s
ize_t(send_length)
},
{ " noreply", reply ? 0 : memcached_literal_param_size(" noreply") },
{ memcached_literal_param("\r\n") }
};
{ " noreply", reply ? 0 : memcached_literal_param_size(" noreply") },
{ memcached_literal_param("\r\n") }
};
@@
-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);