Skip to content

Commit 3088f2c

Browse files
authored
Make RegisterUDF backward compatible with older Aerospike server versions (#548)
1 parent 4034390 commit 3088f2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ func (clnt *Client) RegisterUDF(policy *WritePolicy, udfBody []byte, serverPath
11901190
}
11911191

11921192
response := responseMap[strCmd.String()]
1193-
if strings.EqualFold(response, "ok") {
1193+
if strings.EqualFold(response, "ok") || response == "" {
11941194
return NewRegisterTask(clnt.cluster, serverPath), nil
11951195
}
11961196

0 commit comments

Comments
 (0)