mirror of
https://github.com/fluencelabs/redis
synced 2025-06-19 04:01:22 +00:00
Fix 2.8 backport of fastscript branch.
No REDIS_ENCODING_EMBSTR in 2.8 internals.
This commit is contained in:
@ -373,8 +373,7 @@ cleanup:
|
|||||||
* (we must be the only owner) for us to cache it. */
|
* (we must be the only owner) for us to cache it. */
|
||||||
if (j < LUA_CMD_OBJCACHE_SIZE &&
|
if (j < LUA_CMD_OBJCACHE_SIZE &&
|
||||||
o->refcount == 1 &&
|
o->refcount == 1 &&
|
||||||
(o->encoding == REDIS_ENCODING_RAW ||
|
o->encoding == REDIS_ENCODING_RAW &&
|
||||||
o->encoding == REDIS_ENCODING_EMBSTR) &&
|
|
||||||
sdslen(o->ptr) <= LUA_CMD_OBJCACHE_MAX_LEN)
|
sdslen(o->ptr) <= LUA_CMD_OBJCACHE_MAX_LEN)
|
||||||
{
|
{
|
||||||
struct sdshdr *sh = (void*)(((char*)(o->ptr))-(sizeof(struct sdshdr)));
|
struct sdshdr *sh = (void*)(((char*)(o->ptr))-(sizeof(struct sdshdr)));
|
||||||
|
Reference in New Issue
Block a user