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
1187b0a5
Commit
1187b0a5
authored
Feb 28, 2011
by
antirez
Browse files
fix for zipmap raw saving in unstable branch
parent
d4fb9f41
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rdb.c
View file @
1187b0a5
...
@@ -407,7 +407,7 @@ int rdbSaveKeyValuePair(FILE *fp, robj *key, robj *val,
...
@@ -407,7 +407,7 @@ int rdbSaveKeyValuePair(FILE *fp, robj *key, robj *val,
if
(
vtype
==
REDIS_HASH
&&
val
->
encoding
==
REDIS_ENCODING_ZIPMAP
)
if
(
vtype
==
REDIS_HASH
&&
val
->
encoding
==
REDIS_ENCODING_ZIPMAP
)
vtype
=
REDIS_HASH_ZIPMAP
;
vtype
=
REDIS_HASH_ZIPMAP
;
/* Save type, key, value */
/* Save type, key, value */
if
(
rdbSaveType
(
fp
,
v
al
->
type
)
==
-
1
)
return
-
1
;
if
(
rdbSaveType
(
fp
,
vtype
)
==
-
1
)
return
-
1
;
if
(
rdbSaveStringObject
(
fp
,
key
)
==
-
1
)
return
-
1
;
if
(
rdbSaveStringObject
(
fp
,
key
)
==
-
1
)
return
-
1
;
if
(
rdbSaveObject
(
fp
,
val
)
==
-
1
)
return
-
1
;
if
(
rdbSaveObject
(
fp
,
val
)
==
-
1
)
return
-
1
;
return
1
;
return
1
;
...
...
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