提交 7f2b170e 编写于 作者: D Davies Liu

disable lua script if failed to run

上级 62d489f2
......@@ -406,7 +406,7 @@ func (r *redisMeta) Lookup(ctx Context, parent Ino, name string, inode *Ino, att
var res interface{}
res, err = r.rdb.EvalSha(ctx, r.shaLookup, []string{entryKey, name}).Result()
if err != nil {
if strings.Contains(err.Error(), "NOSCRIPT") {
if strings.Contains(err.Error(), "NOSCRIPT") || strings.Contains(err.Error(), "Error running script") {
r.shaLookup = ""
return r.Lookup(ctx, parent, name, inode, attr)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册