projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fix to make sure we do not copy an element on top of itself.
[m6w6/libmemcached]
/
libmemcached
/
common.h
diff --git
a/libmemcached/common.h
b/libmemcached/common.h
index 24d4cce82a7e96d6b5a6c91b67ac4457a32a05b3..b8c8acf5279b84930e313157f22669b6c6a66b0d 100644
(file)
--- a/
libmemcached/common.h
+++ b/
libmemcached/common.h
@@
-81,7
+81,8
@@
typedef enum {
MEM_VERIFY_KEY= (1 << 10),
/* 11 used for weighted ketama */
MEM_KETAMA_WEIGHTED= (1 << 11),
MEM_VERIFY_KEY= (1 << 10),
/* 11 used for weighted ketama */
MEM_KETAMA_WEIGHTED= (1 << 11),
- MEM_BINARY_PROTOCOL= (1 << 12)
+ MEM_BINARY_PROTOCOL= (1 << 12),
+ MEM_HASH_WITH_PREFIX_KEY= (1 << 13)
} memcached_flags;
/* Hashing algo */
} memcached_flags;
/* Hashing algo */
@@
-125,7
+126,7
@@
extern uint64_t ntohll(uint64_t);
extern uint64_t htonll(uint64_t);
void host_reset(memcached_st *ptr, memcached_server_st *host,
extern uint64_t htonll(uint64_t);
void host_reset(memcached_st *ptr, memcached_server_st *host,
- c
har *hostname, unsigned int por
t,
+ c
onst char *hostname, unsigned int port, uint32_t weigh
t,
memcached_connection type);
#endif /* __COMMON_H__ */
memcached_connection type);
#endif /* __COMMON_H__ */