mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
rename FlagChunkedFile to FlagChunkManifest
This commit is contained in:
parent
6b0894d806
commit
de5e07ce3e
|
@ -162,7 +162,7 @@ func NewNeedle(r *http.Request, fixJpgOrientation bool) (n *Needle, e error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if isChunkedFile {
|
if isChunkedFile {
|
||||||
n.SetChunkedFile()
|
n.SetChunkManifest()
|
||||||
}
|
}
|
||||||
|
|
||||||
if fixJpgOrientation {
|
if fixJpgOrientation {
|
||||||
|
|
|
@ -16,7 +16,7 @@ const (
|
||||||
FlagHasMime = 0x04
|
FlagHasMime = 0x04
|
||||||
FlagHasLastModifiedDate = 0x08
|
FlagHasLastModifiedDate = 0x08
|
||||||
FlagHasTtl = 0x10
|
FlagHasTtl = 0x10
|
||||||
FlagChunkedFile = 0x80
|
FlagChunkManifest = 0x80
|
||||||
LastModifiedBytesLength = 5
|
LastModifiedBytesLength = 5
|
||||||
TtlBytesLength = 2
|
TtlBytesLength = 2
|
||||||
)
|
)
|
||||||
|
@ -282,10 +282,10 @@ func (n *Needle) SetHasTtl() {
|
||||||
n.Flags = n.Flags | FlagHasTtl
|
n.Flags = n.Flags | FlagHasTtl
|
||||||
}
|
}
|
||||||
|
|
||||||
func (n *Needle) IsChunkedFile() bool {
|
func (n *Needle) IsChunkedManifest() bool {
|
||||||
return n.Flags&FlagChunkedFile > 0
|
return n.Flags&FlagChunkManifest > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (n *Needle) SetChunkedFile() {
|
func (n *Needle) SetChunkManifest() {
|
||||||
n.Flags = n.Flags | FlagChunkedFile
|
n.Flags = n.Flags | FlagChunkManifest
|
||||||
}
|
}
|
||||||
|
|
|
@ -222,7 +222,7 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (vs *VolumeServer) tryHandleChunkedFile(n *storage.Needle, fileName string, w http.ResponseWriter, r *http.Request) (processed bool) {
|
func (vs *VolumeServer) tryHandleChunkedFile(n *storage.Needle, fileName string, w http.ResponseWriter, r *http.Request) (processed bool) {
|
||||||
if !n.IsChunkedFile() {
|
if !n.IsChunkedManifest() {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
processed = true
|
processed = true
|
||||||
|
|
Loading…
Reference in a new issue