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
61671a0d
Commit
61671a0d
authored
Apr 04, 2014
by
antirez
Browse files
GETRANGE fixed for LZF encoded objects.
parent
a4961a9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_string.c
View file @
61671a0d
...
...
@@ -242,6 +242,7 @@ void getrangeCommand(redisClient *c) {
if
((
o
=
lookupKeyReadOrReply
(
c
,
c
->
argv
[
1
],
shared
.
emptybulk
))
==
NULL
||
checkType
(
c
,
o
,
REDIS_STRING
))
return
;
if
(
lzfEncodedObject
(
o
))
o
=
dbUnshareStringValue
(
c
->
db
,
c
->
argv
[
1
],
o
);
if
(
o
->
encoding
==
REDIS_ENCODING_INT
)
{
str
=
llbuf
;
strlen
=
ll2string
(
llbuf
,
sizeof
(
llbuf
),(
long
)
o
->
ptr
);
...
...
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