diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-01-14 23:10:37 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-01-14 23:10:37 -0800 |
| commit | f002e668def4abdfda5fe8a76599ae6d0fb76319 (patch) | |
| tree | dce928f9f851226ce64df118fa9b892aea43f1a3 /weed/filesys/dir.go | |
| parent | 19e52fd4146d32b4da48a3369385442e836a7647 (diff) | |
| download | seaweedfs-f002e668def4abdfda5fe8a76599ae6d0fb76319.tar.xz seaweedfs-f002e668def4abdfda5fe8a76599ae6d0fb76319.zip | |
change limit to int64 in case of overflow
Diffstat (limited to 'weed/filesys/dir.go')
| -rw-r--r-- | weed/filesys/dir.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go index a8481a435..f2fbd99d3 100644 --- a/weed/filesys/dir.go +++ b/weed/filesys/dir.go @@ -319,7 +319,7 @@ func (dir *Dir) ReadDirAll(ctx context.Context) (ret []fuse.Dirent, err error) { glog.Errorf("dir ReadDirAll %s: %v", dirPath, err) return nil, fuse.EIO } - listedEntries, listErr := dir.wfs.metaCache.ListDirectoryEntries(context.Background(), util.FullPath(dir.FullPath()), "", false, int(math.MaxInt32)) + listedEntries, listErr := dir.wfs.metaCache.ListDirectoryEntries(context.Background(), util.FullPath(dir.FullPath()), "", false, int64(math.MaxInt32)) if listErr != nil { glog.Errorf("list meta cache: %v", listErr) return nil, fuse.EIO |
