Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(replayq): Ensure brutal_purge safety
This commit replaces all long-lived anonymous functions with M:F/A calls. So that duing upgrade, the old beam can be purged as soon as new beam is loaded. i.e. brutal_purge should not cause process kill.
- Loading branch information
Showing
2 changed files
with
11 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
%% -*-: erlang -*- | ||
{<<".*+">>, | ||
[ {<<".*+">>, [ {load_module, replayq} ]} ], | ||
[ {<<".*+">>, [ {load_module, replayq} ]} ] | ||
[ {<<".*+">>, [ {load_module, replayq, brutal_purge, soft_purge, []} ]} ], | ||
[ {<<".*+">>, [ {load_module, replayq, brutal_purge, soft_purge, []} ]} ] | ||
}. |
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