diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-12-13 10:22:24 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-12-13 10:22:24 -0800 |
| commit | f59119cd1d298c527f9467962e8b480672a414bd (patch) | |
| tree | 32e706a22ff3b76b0c489ec6b4dbf8848c1558c7 /weed/command/mount_std.go | |
| parent | 3e0cd122d83a58d7a97452c09b8c2fa375c3ff09 (diff) | |
| download | seaweedfs-f59119cd1d298c527f9467962e8b480672a414bd.tar.xz seaweedfs-f59119cd1d298c527f9467962e8b480672a414bd.zip | |
mount: rename to dirListCacheLimit to configure cache for long format directory list
Diffstat (limited to 'weed/command/mount_std.go')
| -rw-r--r-- | weed/command/mount_std.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go index 6f9166330..453531d00 100644 --- a/weed/command/mount_std.go +++ b/weed/command/mount_std.go @@ -43,13 +43,13 @@ func runMount(cmd *Command, args []string) bool { *mountOptions.chunkSizeLimitMB, *mountOptions.allowOthers, *mountOptions.ttlSec, - *mountOptions.dirListingLimit, + *mountOptions.dirListCacheLimit, os.FileMode(umask), ) } func RunMount(filer, filerMountRootPath, dir, collection, replication, dataCenter string, chunkSizeLimitMB int, - allowOthers bool, ttlSec int, dirListingLimit int64, umask os.FileMode) bool { + allowOthers bool, ttlSec int, dirListCacheLimit int64, umask os.FileMode) bool { util.LoadConfiguration("security", false) @@ -155,7 +155,7 @@ func RunMount(filer, filerMountRootPath, dir, collection, replication, dataCente TtlSec: int32(ttlSec), ChunkSizeLimit: int64(chunkSizeLimitMB) * 1024 * 1024, DataCenter: dataCenter, - DirListingLimit: dirListingLimit, + DirListCacheLimit: dirListCacheLimit, EntryCacheTtl: 3 * time.Second, MountUid: uid, MountGid: gid, |
