-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Modules: rewrite loadmodule and extend LIST reply #4848
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
Conversation
|
This PR contains two features:
What do you think about it @antirez ? |
|
Thank you, PR checked, everything looks sane but I've to think a bit about the fact of rewriting the config. Probably a good idea but just taking a few days to consider this. Going to merge for RC2 for sure. Thanks. |
|
IIUC, the aim here is that if someone uses the MODULE LOAD or MODULE UNLOAD commands, and then CONFIG REWRITE, the new module list will be reflected in the generated config file, right? |
|
@oranagra No, I think that makes sense. |
|
Sounds good to me as well. |
96ea2bf to
f389a02
Compare
|
I just rebased this PR. BTW, do you think we should show the |
|
i think it can be nice to add the full path and args to the MODULE LIST response with more fields. |
|
@soloestoy shall we merge this with a rebase-merge or a squash merge? also, i'd like to add a test for the CONFIG REWRITE part. |
39e91fb
|
Hi @soloestoy! I maintain a The primary.conf and secondary.conf look like this, primary.confsecondary.conf
primary.conf file after
|
This PR contains three changes:
loadmoduleoptions into config file, in case someone uses MODULE LOAD or UNLOAD commands in runtime.server.loadmodule_queueafter module loaded from config file or UNLOAD to save memory.pathandargsin MODULE LIST reply.