"utils/vscode:/vscode.git/clone" did not exist on "2500f2a33498f66427c5ab6eec76de4606607d1d"
Commit e1e0bbe0 authored by antirez's avatar antirez
Browse files

Remove useless comment from serverCron().

The behavior is well specified by the code itself.
parent a18e4c96
...@@ -1095,7 +1095,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) { ...@@ -1095,7 +1095,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
} }
} else { } else {
/* If there is not a background saving/rewrite in progress check if /* If there is not a background saving/rewrite in progress check if
* we have to save/rewrite now */ * we have to save/rewrite now. */
for (j = 0; j < server.saveparamslen; j++) { for (j = 0; j < server.saveparamslen; j++) {
struct saveparam *sp = server.saveparams+j; struct saveparam *sp = server.saveparams+j;
...@@ -1118,8 +1118,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) { ...@@ -1118,8 +1118,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
} }
} }
/* Trigger an AOF rewrite if needed */ /* Trigger an AOF rewrite if needed. */
// If AOF disabled, we don't rewrite AOF file.
if (server.aof_state == AOF_ON && if (server.aof_state == AOF_ON &&
server.rdb_child_pid == -1 && server.rdb_child_pid == -1 &&
server.aof_child_pid == -1 && server.aof_child_pid == -1 &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment