提交 5bd09cd4 编写于 作者: A antirez

Fix the AOF fix of the latest commit ;)

上级 daf2049d
......@@ -501,9 +501,9 @@ int rewriteAppendOnlyFile(char *filename) {
if (fwrite(cmd,sizeof(cmd)-1,1,fp) == 0) goto werr;
if (fwriteBulkObject(fp,&key) == 0) goto werr;
if (fwriteBulkString(fp,(char*)field,flen) == 0)
return -1;
goto werr;
if (fwriteBulkString(fp,(char*)val,vlen) == 0)
return -1;
goto werr;
}
} else {
dictIterator *di = dictGetIterator(o->ptr);
......@@ -515,8 +515,8 @@ int rewriteAppendOnlyFile(char *filename) {
if (fwrite(cmd,sizeof(cmd)-1,1,fp) == 0) goto werr;
if (fwriteBulkObject(fp,&key) == 0) goto werr;
if (fwriteBulkObject(fp,field) == -1) return REDIS_ERR;
if (fwriteBulkObject(fp,val) == -1) return REDIS_ERR;
if (fwriteBulkObject(fp,field) == 0) goto werr;
if (fwriteBulkObject(fp,val) == 0) goto werr;
}
dictReleaseIterator(di);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册