Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit ce6f5b7

Browse files
authored
Merge pull request #453 from smola/race
fix race on packfile writer, fixes #351
2 parents 2d02297 + c9f5acc commit ce6f5b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/filesystem/internal/dotgit/writers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ func (s *syncedReader) Seek(offset int64, whence int) (int64, error) {
236236
}
237237

238238
p, err := s.r.Seek(offset, whence)
239-
s.read = uint64(p)
239+
atomic.StoreUint64(&s.read, uint64(p))
240240

241241
return p, err
242242
}

0 commit comments

Comments
 (0)