diff options
author | Huang Zhw <huang_zhw@126.com> | 2021-07-19 16:10:25 +0800 |
---|---|---|
committer | Oran Agra <oran@redislabs.com> | 2021-07-21 21:07:02 +0300 |
commit | 2cd271e5d5f2f21da7471babee7a4de4ca489362 (patch) | |
tree | 1a72ad53727bfe6878b09f255ac25a08361efc2d | |
parent | 7d9878e4e508fa62180a8e49aebbad0a16adece4 (diff) | |
download | redis-2cd271e5d5f2f21da7471babee7a4de4ca489362.tar.gz |
Fix missing separator in module info line (usedby and using lists) (#9241)
Fix module info genModulesInfoStringRenderModulesList lack separator when there's more than one module in the list.
Co-authored-by: Oran Agra <oran@redislabs.com>
(cherry picked from commit 1895e134a77efd789b1a6daee76a6ba5ec90e516)
-rw-r--r-- | src/module.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/module.c b/src/module.c index 9278bbcb2..93517494f 100644 --- a/src/module.c +++ b/src/module.c @@ -7785,8 +7785,9 @@ sds genModulesInfoStringRenderModulesList(list *l) { while((ln = listNext(&li))) { RedisModule *module = ln->value; output = sdscat(output,module->name); + if (ln != listLast(l)) + output = sdscat(output,"|"); } - output = sdstrim(output,"|"); output = sdscat(output,"]"); return output; } |