1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-02 12:28:25 +00:00

fix: seek write of dbfs

This commit is contained in:
Jason Song
2022-10-18 14:37:24 +08:00
parent 15db111df1
commit c42577642d
2 changed files with 35 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ type file struct {
var _ File = (*file)(nil)
func (f *file) readAt(fileMeta *FileMeta, offset int64, p []byte) (n int, err error) {
if f.offset >= fileMeta.FileSize {
if offset >= fileMeta.FileSize {
return 0, io.EOF
}