Commit cf013b83 authored by Oran Agra's avatar Oran Agra
Browse files

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

This was introduced in v7.2 by #11248

(cherry picked from commit ba900f6c)
parent d424259a
......@@ -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;
}
......
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