fix bug of filter lua

v4
vinllen 5 years ago
parent 229d1f1882
commit dcb0c19d97
  1. 3
      ChangeLog
  2. 3
      src/redis-shake/common/filter.go

@ -1,3 +1,6 @@
2019-06-25 Alibaba Cloud.
* VERSION: 1.6.10
* IMPROVE: support print Lua in `decode` mode.
2019-06-21 Alibaba Cloud. 2019-06-21 Alibaba Cloud.
* VERSION: 1.6.9 * VERSION: 1.6.9
* IMPROVE: support Lua and transaction when target is open source cluster * IMPROVE: support Lua and transaction when target is open source cluster

@ -8,7 +8,8 @@ func FilterCommands(cmd string, luaFilter bool) bool {
return true return true
} }
if luaFilter && (strings.EqualFold(cmd, "eval") || strings.EqualFold(cmd, "script")) { if luaFilter && (strings.EqualFold(cmd, "eval") || strings.EqualFold(cmd, "script") ||
strings.EqualFold(cmd, "evalsha")) {
return true return true
} }

Loading…
Cancel
Save