|
@ -6,6 +6,7 @@ import ( |
|
|
"fmt" |
|
|
"fmt" |
|
|
"github.com/chrislusf/seaweedfs/weed/util/mem" |
|
|
"github.com/chrislusf/seaweedfs/weed/util/mem" |
|
|
"io" |
|
|
"io" |
|
|
|
|
|
"math" |
|
|
"mime" |
|
|
"mime" |
|
|
"net/http" |
|
|
"net/http" |
|
|
"path/filepath" |
|
|
"path/filepath" |
|
@ -124,7 +125,7 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request) |
|
|
if query.Get("resolveManifest") == "true" { |
|
|
if query.Get("resolveManifest") == "true" { |
|
|
if entry.Chunks, _, err = filer.ResolveChunkManifest( |
|
|
if entry.Chunks, _, err = filer.ResolveChunkManifest( |
|
|
fs.filer.MasterClient.GetLookupFileIdFunction(), |
|
|
fs.filer.MasterClient.GetLookupFileIdFunction(), |
|
|
entry.Chunks, 0, int64(entry.Size())); err != nil { |
|
|
|
|
|
|
|
|
entry.Chunks, 0, math.MaxInt64); err != nil { |
|
|
err = fmt.Errorf("failed to resolve chunk manifest, err: %s", err.Error()) |
|
|
err = fmt.Errorf("failed to resolve chunk manifest, err: %s", err.Error()) |
|
|
writeJsonError(w, r, http.StatusInternalServerError, err) |
|
|
writeJsonError(w, r, http.StatusInternalServerError, err) |
|
|
} |
|
|
} |
|
|