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
dab5332f
Commit
dab5332f
authored
Nov 09, 2011
by
antirez
Browse files
Fixed a few typos
parent
bdbdb02e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/rdb.c
View file @
dab5332f
...
...
@@ -997,7 +997,7 @@ int rdbLoad(char *filename) {
if
((
expiretime
=
rdbLoadTime
(
&
rdb
))
==
-
1
)
goto
eoferr
;
/* We read the time so we need to read the object type again. */
if
((
type
=
rdbLoadType
(
&
rdb
))
==
-
1
)
goto
eoferr
;
/* the EXPIRE
I
TME opcode specifies time in seconds, so convert
/* the EXPIRET
I
ME opcode specifies time in seconds, so convert
* into milliesconds. */
expiretime
*=
1000
;
}
else
if
(
type
==
REDIS_RDB_OPCODE_EXPIRETIME_MS
)
{
...
...
src/rdb.h
View file @
dab5332f
...
...
@@ -77,7 +77,7 @@ off_t rdbSavedObjectLen(robj *o);
off_t
rdbSavedObjectPages
(
robj
*
o
);
robj
*
rdbLoadObject
(
int
type
,
rio
*
rdb
);
void
backgroundSaveDoneHandler
(
int
exitcode
,
int
bysignal
);
int
rdbSaveKeyValuePair
(
rio
*
rdb
,
robj
*
key
,
robj
*
val
,
long
long
expire
i
tme
,
long
long
now
);
int
rdbSaveKeyValuePair
(
rio
*
rdb
,
robj
*
key
,
robj
*
val
,
long
long
expiret
i
me
,
long
long
now
);
robj
*
rdbLoadStringObject
(
rio
*
rdb
);
#endif
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