From 3203e2dcdd11816ab72463b39ed6b62414be48b6 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 7 May 2014 16:39:43 +0200 Subject: [PATCH] Fix 2.8 backport of fastscript branch. No REDIS_ENCODING_EMBSTR in 2.8 internals. --- src/scripting.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/scripting.c b/src/scripting.c index 056945a5..5539f40d 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -373,8 +373,7 @@ cleanup: * (we must be the only owner) for us to cache it. */ if (j < LUA_CMD_OBJCACHE_SIZE && o->refcount == 1 && - (o->encoding == REDIS_ENCODING_RAW || - o->encoding == REDIS_ENCODING_EMBSTR) && + o->encoding == REDIS_ENCODING_RAW && sdslen(o->ptr) <= LUA_CMD_OBJCACHE_MAX_LEN) { struct sdshdr *sh = (void*)(((char*)(o->ptr))-(sizeof(struct sdshdr))); -- GitLab