diff options
| author | Chris Lu <chris.lu@gmail.com> | 2017-06-03 11:44:24 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2017-06-03 11:44:24 -0700 |
| commit | 5047bdb4a20f756f5d025be0788403dbb2db9523 (patch) | |
| tree | 7a7843d226d1aa68715b0a7d5812715dc715613c /weed/command/volume.go | |
| parent | f5bed84340b8b96c8b134b849f302120d85708c6 (diff) | |
| download | seaweedfs-5047bdb4a20f756f5d025be0788403dbb2db9523.tar.xz seaweedfs-5047bdb4a20f756f5d025be0788403dbb2db9523.zip | |
skip bytes cache
Diffstat (limited to 'weed/command/volume.go')
| -rw-r--r-- | weed/command/volume.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go index a4e316ecb..ad9803974 100644 --- a/weed/command/volume.go +++ b/weed/command/volume.go @@ -36,7 +36,6 @@ type VolumeServerOptions struct { indexType *string fixJpgOrientation *bool readRedirect *bool - enableBytesCache *bool } func init() { @@ -55,7 +54,6 @@ func init() { v.indexType = cmdVolume.Flag.String("index", "memory", "Choose [memory|leveldb|boltdb|btree] mode for memory~performance balance.") v.fixJpgOrientation = cmdVolume.Flag.Bool("images.fix.orientation", true, "Adjust jpg orientation when uploading.") v.readRedirect = cmdVolume.Flag.Bool("read.redirect", true, "Redirect moved or non-local volumes.") - v.enableBytesCache = cmdVolume.Flag.Bool("cache.enable", false, "direct cache instead of OS cache, cost more memory.") } var cmdVolume = &Command{ @@ -136,7 +134,6 @@ func runVolume(cmd *Command, args []string) bool { *v.master, *v.pulseSeconds, *v.dataCenter, *v.rack, v.whiteList, *v.fixJpgOrientation, *v.readRedirect, - *v.enableBytesCache, ) listeningAddress := *v.bindIp + ":" + strconv.Itoa(*v.port) |
