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
71eba477
Commit
71eba477
authored
Oct 31, 2009
by
antirez
Browse files
Fixed compilation on Linux
parent
4e141d5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
71eba477
...
...
@@ -1104,7 +1104,7 @@ static void initServer() {
aeCreateTimeEvent(server.el, 1000, serverCron, NULL, NULL);
if (server.appendonly) {
server.appendfd = open(server.appendfilename,O_WRONLY|O_APPEND|O_CREAT);
server.appendfd = open(server.appendfilename,O_WRONLY|O_APPEND|O_CREAT
,0644
);
if (server.appendfd == -1) {
redisLog(REDIS_WARNING, "Can't open the append-only file: %s",
strerror(errno));
...
...
@@ -1725,7 +1725,7 @@ static void feedAppendOnlyFile(struct redisCommand *cmd, int dictid, robj **argv
* there is much to do about the whole server stopping for power problems
* or alike */
nwritten = write(server.appendfd,buf,sdslen(buf));
if (nwritten != (
un
signed)sdslen(buf)) {
if (nwritten != (signed)sdslen(buf)) {
/* Ooops, we are in troubles. The best thing to do for now is
* to simply exit instead to give the illusion that everything is
* working as expected. */
...
...
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