Browse Source

fix writing the small file

pull/2115/head
Chris Lu 4 years ago
parent
commit
19caeb7b02
  1. 2
      weed/server/filer_server_handlers_write_upload.go

2
weed/server/filer_server_handlers_write_upload.go

@ -58,7 +58,7 @@ func (fs *FilerServer) uploadReaderToChunks(w http.ResponseWriter, r *http.Reque
if dataSize < fs.option.SaveToFilerLimit || strings.HasPrefix(r.URL.Path, filer.DirectoryEtcRoot) && dataSize < 4*1024 {
chunkOffset += dataSize
smallContent = make([]byte, dataSize)
bytesBuffer.Write(smallContent)
bytesBuffer.Read(smallContent)
break
}
}

Loading…
Cancel
Save