From 4bb905c98f55aa865618461cd2c4e6e7c3cfc2de Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 7 May 2014 16:39:43 +0200 Subject: 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 056945a55..5539f40da 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))); -- cgit v1.2.1