Skip to content

Commit

Permalink
cap
Browse files Browse the repository at this point in the history
Signed-off-by: jiefenghuang <[email protected]>
  • Loading branch information
jiefenghuang committed Sep 27, 2024
1 parent c7b2c0c commit 347fd0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/meta/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -4486,7 +4486,7 @@ func (m *dbMeta) newDirStream(inode Ino, plus bool, entries []*Entry) DirStream

func (m *dbMeta) getDirFetcher() dirFetcher {
return func(ctx Context, inode Ino, cursor interface{}, offset, limit int, plus bool) (interface{}, []*Entry, error) {
var entries []*Entry
entries := make([]*Entry, 0, limit)
err := m.roTxn(func(s *xorm.Session) error {
iCursor := offset
if cursor != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/meta/tkv.go
Original file line number Diff line number Diff line change
Expand Up @@ -3828,7 +3828,7 @@ func (m *kvMeta) getDirFetcher() dirFetcher {
}

prefix := len(m.entryKey(inode, ""))
var entries []*Entry
entries := make([]*Entry, 0, len(keys))
var name []byte
var typ uint8
var ino Ino
Expand Down

0 comments on commit 347fd0e

Please sign in to comment.