mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 00:52:38 +00:00
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 1895e134a7
)
This commit is contained in:
parent
7d9878e4e5
commit
2cd271e5d5
@ -7785,8 +7785,9 @@ sds genModulesInfoStringRenderModulesList(list *l) {
|
|||||||
while((ln = listNext(&li))) {
|
while((ln = listNext(&li))) {
|
||||||
RedisModule *module = ln->value;
|
RedisModule *module = ln->value;
|
||||||
output = sdscat(output,module->name);
|
output = sdscat(output,module->name);
|
||||||
|
if (ln != listLast(l))
|
||||||
|
output = sdscat(output,"|");
|
||||||
}
|
}
|
||||||
output = sdstrim(output,"|");
|
|
||||||
output = sdscat(output,"]");
|
output = sdscat(output,"]");
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user