diff options
Diffstat (limited to 'weed/server/volume_server.go')
| -rw-r--r-- | weed/server/volume_server.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go index 79a4276b1..1a912a169 100644 --- a/weed/server/volume_server.go +++ b/weed/server/volume_server.go @@ -33,7 +33,8 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string, dataCenter string, rack string, whiteList []string, fixJpgOrientation bool, - readRedirect bool) *VolumeServer { + readRedirect bool, + enableBytesCache bool) *VolumeServer { vs := &VolumeServer{ pulseSeconds: pulseSeconds, dataCenter: dataCenter, @@ -44,6 +45,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string, } vs.SetMasterNode(masterNode) vs.store = storage.NewStore(port, ip, publicUrl, folders, maxCounts, vs.needleMapKind) + storage.EnableBytesCache = enableBytesCache vs.guard = security.NewGuard(whiteList, "") |
