Skip to content

Commit

Permalink
Broadcast FUNCTION LOAD command methods (#3557)
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Sep 28, 2023
1 parent 443a377 commit 7b5472f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/redis/clients/jedis/UnifiedJedis.java
Original file line number Diff line number Diff line change
Expand Up @@ -3262,12 +3262,12 @@ public List<LibraryInfo> functionListWithCode(String libraryNamePattern) {

@Override
public String functionLoad(String functionCode) {
return executeCommand(commandObjects.functionLoad(functionCode));
return checkAndBroadcastCommand(commandObjects.functionLoad(functionCode));
}

@Override
public String functionLoadReplace(String functionCode) {
return executeCommand(commandObjects.functionLoadReplace(functionCode));
return checkAndBroadcastCommand(commandObjects.functionLoadReplace(functionCode));
}

@Override
Expand Down Expand Up @@ -3317,12 +3317,12 @@ public List<Object> functionListWithCode(final byte[] libraryNamePattern) {

@Override
public String functionLoad(byte[] functionCode) {
return executeCommand(commandObjects.functionLoad(functionCode));
return checkAndBroadcastCommand(commandObjects.functionLoad(functionCode));
}

@Override
public String functionLoadReplace(byte[] functionCode) {
return executeCommand(commandObjects.functionLoadReplace(functionCode));
return checkAndBroadcastCommand(commandObjects.functionLoadReplace(functionCode));
}

@Override
Expand Down

0 comments on commit 7b5472f

Please sign in to comment.