mirror of
https://github.com/fluencelabs/redis
synced 2025-06-15 10:11:21 +00:00
Merged Solaris patches provided by Alan Harder
This commit is contained in:
2
redis.c
2
redis.c
@ -2329,7 +2329,7 @@ static int rdbSave(char *filename) {
|
||||
/* Use RENAME to make sure the DB file is changed atomically only
|
||||
* if the generate DB file is ok. */
|
||||
if (rename(tmpfile,filename) == -1) {
|
||||
redisLog(REDIS_WARNING,"Error moving temp DB file on the final destionation: %s", strerror(errno));
|
||||
redisLog(REDIS_WARNING,"Error moving temp DB file on the final destination: %s", strerror(errno));
|
||||
unlink(tmpfile);
|
||||
return REDIS_ERR;
|
||||
}
|
||||
|
Reference in New Issue
Block a user