Unverified Commit ba900f6c authored by Oran Agra's avatar Oran Agra Committed by GitHub
Browse files

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

This was introduced in v7.2 by #11248
parent 372ea218
......@@ -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