提交 4e6f0ace 编写于 作者: D Davies Liu

add a warning for failed script

上级 7f2b170e
......@@ -407,6 +407,7 @@ func (r *redisMeta) Lookup(ctx Context, parent Ino, name string, inode *Ino, att
res, err = r.rdb.EvalSha(ctx, r.shaLookup, []string{entryKey, name}).Result()
if err != nil {
if strings.Contains(err.Error(), "NOSCRIPT") || strings.Contains(err.Error(), "Error running script") {
logger.Warnf("eval lookup: %s", err)
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.
先完成此消息的编辑!
想要评论请 注册