forked from valkey-io/valkey
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DENYOOM flag to SCRIPT LOAD and make it fail on OOM
Currently we can load a lot of lua to bypass maxmemory, adds a DENYOOM flag to make it fail on OOM. Signed-off-by: Binbin <[email protected]>
- Loading branch information
1 parent
b728e41
commit f6049db
Showing
3 changed files
with
7 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
"function": "scriptCommand", | ||
"command_flags": [ | ||
"NOSCRIPT", | ||
"DENYOOM", | ||
"STALE" | ||
], | ||
"acl_categories": [ | ||
|
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