Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LuaMemoryManagementMode option in .conf files #952

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kevin-montrose
Copy link
Contributor

Due to a bug related to defaults, LuaMemoryManagementMode couldn't be specified via .conf files (it'd always end up as Native).

This fixes that, and expands the existing config test to cover .conf files.

@@ -516,7 +516,8 @@ internal sealed class Options
[Option("skip-rdb-restore-checksum-validation", Default = false, Required = false, HelpText = "Skip RDB restore checksum validation")]
public bool? SkipRDBRestoreChecksumValidation { get; set; }

[Option("lua-memory-management-mode", Default = LuaMemoryManagementMode.Native, Required = false, HelpText = "Memory management mode for Lua scripts, must be set to LimittedNative or Managed to impose script limits")]
[OptionValidation]
[Option("lua-memory-management-mode", Required = false, HelpText = "Memory management mode for Lua scripts, must be set to LimittedNative or Managed to impose script limits")]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo? LimittedNative

@badrishc badrishc requested a review from TalZaccai January 24, 2025 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants