Fix fd leak causing deleted files to remain open and eat disk space (#12693)

This was introduced in v7.2 by #11248
This commit is contained in:
Oran Agra 2023-10-25 20:54:02 +03:00 committed by GitHub
parent 372ea21875
commit ba900f6cb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2250,6 +2250,7 @@ void readSyncBulkPayload(connection *conn) {
}
zfree(server.repl_transfer_tmpfile);
close(server.repl_transfer_fd);
server.repl_transfer_fd = -1;
server.repl_transfer_tmpfile = NULL;
}