projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Add docs for tap, and update all other documentation.
[m6w6/libmemcached]
/
libmemcached
/
options
/
parser.yy
diff --git
a/libmemcached/options/parser.yy
b/libmemcached/options/parser.yy
index a628ac22968f3dd0b9f495184fd10c08fbcac8ba..0f0aee65a459115f6da1f104b3198888bde67029 100644
(file)
--- a/
libmemcached/options/parser.yy
+++ b/
libmemcached/options/parser.yy
@@
-80,7
+80,7
@@
inline void config_error(Context *context, yyscan_t *scanner, const char *error)
%token CONNECT_TIMEOUT
%token DISTRIBUTION
%token HASH
%token CONNECT_TIMEOUT
%token DISTRIBUTION
%token HASH
-%token HASH_WITH_
PREFIX_KEY
+%token HASH_WITH_
NAMESPACE
%token IO_BYTES_WATERMARK
%token IO_KEY_PREFETCH
%token IO_MSG_WATERMARK
%token IO_BYTES_WATERMARK
%token IO_KEY_PREFETCH
%token IO_MSG_WATERMARK
@@
-106,7
+106,7
@@
inline void config_error(Context *context, yyscan_t *scanner, const char *error)
%token _TCP_NODELAY
/* Callbacks */
%token _TCP_NODELAY
/* Callbacks */
-%token
PREFIX_KEY
+%token
NAMESPACE
/* Hash types */
%token MD5
/* Hash types */
%token MD5
@@
-214,7
+214,7
@@
expression:
;
behaviors:
;
behaviors:
-
PREFIX_KEY
string
+
NAMESPACE
string
{
if ((context->rc= memcached_set_prefix_key(context->memc, $2.c_str, $2.length)) != MEMCACHED_SUCCESS)
{
{
if ((context->rc= memcached_set_prefix_key(context->memc, $2.c_str, $2.length)) != MEMCACHED_SUCCESS)
{
@@
-325,7
+325,7
@@
behavior_boolean:
{
$$= MEMCACHED_BEHAVIOR_BUFFER_REQUESTS;
}
{
$$= MEMCACHED_BEHAVIOR_BUFFER_REQUESTS;
}
- | HASH_WITH_
PREFIX_KEY
+ | HASH_WITH_
NAMESPACE
{
$$= MEMCACHED_BEHAVIOR_HASH_WITH_PREFIX_KEY;
}
{
$$= MEMCACHED_BEHAVIOR_HASH_WITH_PREFIX_KEY;
}