mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Cleanup: replicationFeedMonitors use the monitor list arg it got (#10417)
Better check the monitors list argument instead of server.monitors in the function, although they are basically the same in the context, so this doesn't have any impact on the current code.
This commit is contained in:
parent
a6bf509810
commit
dc7a9d3a31
@ -543,7 +543,8 @@ void replicationFeedStreamFromMasterStream(char *buf, size_t buflen) {
|
||||
}
|
||||
|
||||
void replicationFeedMonitors(client *c, list *monitors, int dictid, robj **argv, int argc) {
|
||||
if (!(listLength(server.monitors) && !server.loading)) return;
|
||||
/* Fast path to return if the monitors list is empty or the server is in loading. */
|
||||
if (monitors == NULL || listLength(monitors) == 0 || server.loading) return;
|
||||
listNode *ln;
|
||||
listIter li;
|
||||
int j;
|
||||
|
Loading…
Reference in New Issue
Block a user