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
a7722dc3
Commit
a7722dc3
authored
Jan 08, 2015
by
antirez
Browse files
Typo fixed: fiels -> fields in rdbSaveInfoAuxFields().
Thx to @badboy.
parent
4c0e8923
Changes
1
Show whitespace changes
Inline
Side-by-side
src/rdb.c
View file @
a7722dc3
...
@@ -707,7 +707,7 @@ int rdbSaveAuxFieldStrInt(rio *rdb, char *key, long long val) {
...
@@ -707,7 +707,7 @@ int rdbSaveAuxFieldStrInt(rio *rdb, char *key, long long val) {
int
rdbSaveInfoAuxFields
(
rio
*
rdb
)
{
int
rdbSaveInfoAuxFields
(
rio
*
rdb
)
{
int
redis_bits
=
(
sizeof
(
void
*
)
==
8
)
?
64
:
32
;
int
redis_bits
=
(
sizeof
(
void
*
)
==
8
)
?
64
:
32
;
/* Add a few fiels about the state when the RDB was created. */
/* Add a few fiel
d
s about the state when the RDB was created. */
if
(
rdbSaveAuxFieldStrStr
(
rdb
,
"redis-ver"
,
REDIS_VERSION
)
==
-
1
)
return
-
1
;
if
(
rdbSaveAuxFieldStrStr
(
rdb
,
"redis-ver"
,
REDIS_VERSION
)
==
-
1
)
return
-
1
;
if
(
rdbSaveAuxFieldStrInt
(
rdb
,
"redis-bits"
,
redis_bits
)
==
-
1
)
return
-
1
;
if
(
rdbSaveAuxFieldStrInt
(
rdb
,
"redis-bits"
,
redis_bits
)
==
-
1
)
return
-
1
;
if
(
rdbSaveAuxFieldStrInt
(
rdb
,
"ctime"
,
time
(
NULL
))
==
-
1
)
return
-
1
;
if
(
rdbSaveAuxFieldStrInt
(
rdb
,
"ctime"
,
time
(
NULL
))
==
-
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