Skip to content

Commit

Permalink
feat/acl: fix unittest
Browse files Browse the repository at this point in the history
Signed-off-by: jiefeng <[email protected]>
  • Loading branch information
jiefenghuang committed Mar 6, 2024
1 parent 0d808c2 commit 158f712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/meta/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -4455,7 +4455,7 @@ func (m *dbMeta) GetFacl(ctx Context, ino Ino, aclType uint8, rule *aclAPI.Rule)
return errno(m.roTxn(func(s *xorm.Session) error {
attr := &Attr{}
n := &node{Inode: ino}
if ok, err := s.ForUpdate().Get(n); err != nil {
if ok, err := s.Get(n); err != nil {
return err
} else if !ok {
return syscall.ENOENT
Expand Down

0 comments on commit 158f712

Please sign in to comment.