diff options
| author | Chris Lu <chris.lu@gmail.com> | 2013-07-15 11:04:43 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2013-07-15 11:04:43 -0700 |
| commit | 70fe7e6b5d487aa72a5e5cafdab6eb3447b1fcfc (patch) | |
| tree | a2f1f28c1894325894d36c7a9eac5afb0f2435ed /go/replication | |
| parent | c6bd4e656edaf92c8a2e44f196db156d99f96f20 (diff) | |
| download | seaweedfs-70fe7e6b5d487aa72a5e5cafdab6eb3447b1fcfc.tar.xz seaweedfs-70fe7e6b5d487aa72a5e5cafdab6eb3447b1fcfc.zip | |
support gzip file upload, fix problem during replication of gzipped data
Diffstat (limited to 'go/replication')
| -rw-r--r-- | go/replication/store_replicate.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/replication/store_replicate.go b/go/replication/store_replicate.go index f6e84e2ef..358f7dade 100644 --- a/go/replication/store_replicate.go +++ b/go/replication/store_replicate.go @@ -25,7 +25,7 @@ func ReplicatedWrite(masterNode string, s *storage.Store, volumeId storage.Volum if needToReplicate { //send to other replica locations if r.FormValue("type") != "replicate" { if !distributedOperation(masterNode, s, volumeId, func(location operation.Location) bool { - _, err := operation.Upload("http://"+location.Url+r.URL.Path+"?type=replicate&ts="+strconv.FormatUint(needle.LastModified,10), string(needle.Name), bytes.NewReader(needle.Data)) + _, err := operation.Upload("http://"+location.Url+r.URL.Path+"?type=replicate&ts="+strconv.FormatUint(needle.LastModified,10), string(needle.Name), bytes.NewReader(needle.Data), needle.IsGzipped()) return err == nil }) { ret = 0 |
