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
0a98b21f
Commit
0a98b21f
authored
Dec 31, 2012
by
yoav
Committed by
antirez
Aug 18, 2014
Browse files
Add error check for writing RDB checksum
Closes #857
parent
233d24a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rdb.c
View file @
0a98b21f
...
...
@@ -688,7 +688,7 @@ int rdbSave(char *filename) {
* loading code skips the check in this case. */
cksum
=
rdb
.
cksum
;
memrev64ifbe
(
&
cksum
);
rioWrite
(
&
rdb
,
&
cksum
,
8
);
if
(
rioWrite
(
&
rdb
,
&
cksum
,
8
)
==
0
)
goto
werr
;
/* Make sure data will not remain on the OS's output buffers */
if
(
fflush
(
fp
)
==
EOF
)
goto
werr
;
...
...
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