Skip to content

Commit db420c7

Browse files
author
guozhi.li
committed
support custom cmd. value is empty
1 parent 56242c9 commit db420c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

service/redis/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ func (c *client) SetCustomRedisConfig(ip string, port string, configs []string,
306306
return err
307307
}
308308
// If the configuration is an empty line , it will result in an incorrect configSet, which will not run properly down the line.
309-
if strings.TrimSpace(param) == "" || strings.TrimSpace(value) == "" {
309+
// `config set save ""` should support
310+
if strings.TrimSpace(param) == "" {
310311
continue
311312
}
312313
if err := c.applyRedisConfig(param, value, rClient); err != nil {

0 commit comments

Comments
 (0)