aboutsummaryrefslogtreecommitdiff
path: root/weed/server/volume_server.go
diff options
context:
space:
mode:
author李远军 <yourchanges@gmail.com>2020-07-10 10:08:36 +0800
committer李远军 <yourchanges@gmail.com>2020-07-10 10:08:36 +0800
commit6608cb5f43d7b26c0f67e18907313dbc52a1eadf (patch)
tree6c2af4e110e6780536d055050c70a57cc012a511 /weed/server/volume_server.go
parente67096656b0fcdc313c7d8983b6ce36a54d794a3 (diff)
downloadseaweedfs-6608cb5f43d7b26c0f67e18907313dbc52a1eadf.tar.xz
seaweedfs-6608cb5f43d7b26c0f67e18907313dbc52a1eadf.zip
Revert "remove fixJpgOrientation"
This reverts commit de5ca9b2
Diffstat (limited to 'weed/server/volume_server.go')
-rw-r--r--weed/server/volume_server.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go
index b7ed81be0..3af37b491 100644
--- a/weed/server/volume_server.go
+++ b/weed/server/volume_server.go
@@ -25,6 +25,7 @@ type VolumeServer struct {
grpcDialOption grpc.DialOption
needleMapKind storage.NeedleMapType
+ FixJpgOrientation bool
ReadRedirect bool
compactionBytePerSecond int64
MetricsAddress string
@@ -39,6 +40,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,
masterNodes []string, pulseSeconds int,
dataCenter string, rack string,
whiteList []string,
+ fixJpgOrientation bool,
readRedirect bool,
compactionMBPerSecond int,
fileSizeLimitMB int,
@@ -59,6 +61,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,
dataCenter: dataCenter,
rack: rack,
needleMapKind: needleMapKind,
+ FixJpgOrientation: fixJpgOrientation,
ReadRedirect: readRedirect,
grpcDialOption: security.LoadClientTLS(util.GetViper(), "grpc.volume"),
compactionBytePerSecond: int64(compactionMBPerSecond) * 1024 * 1024,