diff options
author | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2018-12-20 16:04:13 +0300 |
---|---|---|
committer | Pavlo Yatsukhnenko <yatsukhnenko@gmail.com> | 2018-12-22 16:31:51 +0300 |
commit | bb32e6f3a0e93b1de9235de2db496fb1bfc400d0 (patch) | |
tree | 32bea8aa6ba652927b18d810d8c0a08b86070498 /redis_session.c | |
parent | 3e7e1c833d08aac4e0eeb4e37dcc44768c8b117c (diff) |
Implement consistent hashing algorithm for RedisArray
Diffstat (limited to 'redis_session.c')
-rw-r--r-- | redis_session.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/redis_session.c b/redis_session.c index e1f79c17..1948c6c8 100644 --- a/redis_session.c +++ b/redis_session.c @@ -41,17 +41,6 @@ #include "SAPI.h" #include "ext/standard/url.h" -/* HOST_NAME_MAX doesn't exist everywhere */ -#ifndef HOST_NAME_MAX - #if defined(_POSIX_HOST_NAME_MAX) - #define HOST_NAME_MAX _POSIX_HOST_NAME_MAX - #elif defined(MAXHOSTNAMELEN) - #define HOST_NAME_MAX MAXHOSTNAMELEN - #else - #define HOST_NAME_MAX 255 - #endif -#endif - /* Session lock LUA as well as its SHA1 hash */ #define LOCK_RELEASE_LUA_STR "if redis.call(\"get\",KEYS[1]) == ARGV[1] then return redis.call(\"del\",KEYS[1]) else return 0 end" #define LOCK_RELEASE_LUA_LEN (sizeof(LOCK_RELEASE_LUA_STR) - 1) |