diff options
| author | tnextday <fw2k4@163.com> | 2015-12-02 21:27:29 +0800 |
|---|---|---|
| committer | tnextday <fw2k4@163.com> | 2015-12-02 21:27:29 +0800 |
| commit | 662915e6915d18a9e45b73577f93ef3be6562f4e (patch) | |
| tree | ef44a0237091e1bc2d395679372b87e682ebbb96 /go/storage/needle.go | |
| parent | 520875d45504f0b659de7f4ff656634489100416 (diff) | |
| download | seaweedfs-662915e6915d18a9e45b73577f93ef3be6562f4e.tar.xz seaweedfs-662915e6915d18a9e45b73577f93ef3be6562f4e.zip | |
Delete all chunks when delete a ChunkManifest
LoadChunkManifest can uncompress buffer
move compress.go from storage to operation because of import cycle
MakeFile add cross complete command
Diffstat (limited to 'go/storage/needle.go')
| -rw-r--r-- | go/storage/needle.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/go/storage/needle.go b/go/storage/needle.go index e1902e461..32ebdae7d 100644 --- a/go/storage/needle.go +++ b/go/storage/needle.go @@ -15,6 +15,7 @@ import ( "github.com/chrislusf/seaweedfs/go/glog" "github.com/chrislusf/seaweedfs/go/images" "github.com/chrislusf/seaweedfs/go/util" + "github.com/chrislusf/seaweedfs/go/operation" ) const ( @@ -117,8 +118,8 @@ func ParseUpload(r *http.Request) (fileName string, data []byte, mimeType string } if part.Header.Get("Content-Encoding") == "gzip" { isGzipped = true - } else if IsGzippable(ext, mtype) { - if data, e = GzipData(data); e != nil { + } else if operation.IsGzippable(ext, mtype) { + if data, e = operation.GzipData(data); e != nil { return } isGzipped = true |
