Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
3203e2dc
Commit
3203e2dc
authored
May 07, 2014
by
antirez
Browse files
Fix 2.8 backport of fastscript branch.
No REDIS_ENCODING_EMBSTR in 2.8 internals.
parent
6e478ec8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scripting.c
View file @
3203e2dc
...
...
@@ -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
)));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment