aboutsummaryrefslogtreecommitdiff
path: root/weed/command/volume.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2020-07-09 19:42:50 -0700
committerGitHub <noreply@github.com>2020-07-09 19:42:50 -0700
commitcf43edc67705d8b330b895b81b77bdda3ed4e17b (patch)
treeafa366c6b8a235bc7561116397cb54cae784646b /weed/command/volume.go
parent1b680c06c1de27e6a3899c089ec354a9eb08ea44 (diff)
parent8c318470dd95b3fc24d39dc3cf253cc17b03ab39 (diff)
downloadseaweedfs-cf43edc67705d8b330b895b81b77bdda3ed4e17b.tar.xz
seaweedfs-cf43edc67705d8b330b895b81b77bdda3ed4e17b.zip
Merge pull request #1385 from yourchanges/master
Revert "remove fixJpgOrientation"
Diffstat (limited to 'weed/command/volume.go')
-rw-r--r--weed/command/volume.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go
index 0a7d52049..27687af66 100644
--- a/weed/command/volume.go
+++ b/weed/command/volume.go
@@ -47,6 +47,7 @@ type VolumeServerOptions struct {
rack *string
whiteList []string
indexType *string
+ fixJpgOrientation *bool
readRedirect *bool
cpuProfile *string
memProfile *string
@@ -70,6 +71,7 @@ func init() {
v.dataCenter = cmdVolume.Flag.String("dataCenter", "", "current volume server's data center name")
v.rack = cmdVolume.Flag.String("rack", "", "current volume server's rack name")
v.indexType = cmdVolume.Flag.String("index", "memory", "Choose [memory|leveldb|leveldbMedium|leveldbLarge] mode for memory~performance balance.")
+ v.fixJpgOrientation = cmdVolume.Flag.Bool("images.fix.orientation", false, "Adjust jpg orientation when uploading.")
v.readRedirect = cmdVolume.Flag.Bool("read.redirect", true, "Redirect moved or non-local volumes.")
v.cpuProfile = cmdVolume.Flag.String("cpuprofile", "", "cpu profile output file")
v.memProfile = cmdVolume.Flag.String("memprofile", "", "memory profile output file")
@@ -200,7 +202,7 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v
volumeNeedleMapKind,
strings.Split(masters, ","), 5, *v.dataCenter, *v.rack,
v.whiteList,
- *v.readRedirect,
+ *v.fixJpgOrientation, *v.readRedirect,
*v.compactionMBPerSecond,
*v.fileSizeLimitMB,
)