This repository has been archived by the owner on Feb 20, 2021. It is now read-only.
forked from redis/redis
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] FreeHeapBlock should check if the addr is in the redis heap.
Since the forked process allocates the memory from the system heap, it must verify if the address is in the system heap or in the redis heap before freeing it. Changed dictRehash to NOOP when called by the forked process to avoid extra processing that is not required when the forked process is saving the dataset.
- Loading branch information
1 parent
596b71f
commit b186c27
Showing
3 changed files
with
79 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,8 @@ | |
extern "C" { | ||
#endif | ||
|
||
BOOL g_IsForkedProcess; | ||
|
||
typedef enum operationType { | ||
otINVALID = 0, | ||
otRDB = 1, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters