Skip to content

Commit ac011eb

Browse files
authored
Delete the residual code related to aof rewrite buf (redis#10176)
1 parent 823da54 commit ac011eb

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/aof.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -2328,9 +2328,7 @@ int rewriteAppendOnlyFileBackground(void) {
23282328
}
23292329

23302330
/* We set aof_selected_db to -1 in order to force the next call to the
2331-
* feedAppendOnlyFile() to issue a SELECT command, so the differences
2332-
* accumulated by the parent into server.aof_rewrite_buf will start
2333-
* with a SELECT statement and it will be safe to merge. */
2331+
* feedAppendOnlyFile() to issue a SELECT command. */
23342332
server.aof_selected_db = -1;
23352333
flushAppendOnlyFile(1);
23362334
if (openNewIncrAofForAppend() != C_OK) return C_ERR;

src/server.h

-1
Original file line numberDiff line numberDiff line change
@@ -1616,7 +1616,6 @@ struct redisServer {
16161616
off_t aof_fsync_offset; /* AOF offset which is already synced to disk. */
16171617
int aof_flush_sleep; /* Micros to sleep before flush. (used by tests) */
16181618
int aof_rewrite_scheduled; /* Rewrite once BGSAVE terminates. */
1619-
list *aof_rewrite_buf_blocks; /* Hold changes during an AOF rewrite. */
16201619
sds aof_buf; /* AOF buffer, written before entering the event loop */
16211620
int aof_fd; /* File descriptor of currently selected AOF file */
16221621
int aof_selected_db; /* Currently selected DB in AOF */

0 commit comments

Comments
 (0)