File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -8667,11 +8667,19 @@ void addReplyLoadedModules(client *c) {
8667
8667
while ((de = dictNext (di )) != NULL ) {
8668
8668
sds name = dictGetKey (de );
8669
8669
struct RedisModule * module = dictGetVal (de );
8670
- addReplyMapLen (c ,2 );
8670
+ sds path = module -> loadmod -> path ;
8671
+ addReplyMapLen (c ,4 );
8671
8672
addReplyBulkCString (c ,"name" );
8672
8673
addReplyBulkCBuffer (c ,name ,sdslen (name ));
8673
8674
addReplyBulkCString (c ,"ver" );
8674
8675
addReplyLongLong (c ,module -> ver );
8676
+ addReplyBulkCString (c ,"path" );
8677
+ addReplyBulkCBuffer (c ,path ,sdslen (path ));
8678
+ addReplyBulkCString (c ,"args" );
8679
+ addReplyArrayLen (c ,module -> loadmod -> argc );
8680
+ for (int i = 0 ; i < module -> loadmod -> argc ; i ++ ) {
8681
+ addReplyBulk (c ,module -> loadmod -> argv [i ]);
8682
+ }
8675
8683
}
8676
8684
dictReleaseIterator (di );
8677
8685
}
You can’t perform that action at this time.
0 commit comments