mirror of https://github.com/perkeep/perkeep.git
readerutil: fix atomic alignment for 32-bit platforms
Change-Id: I10eb60a9abbbaf5aeccb1eba9592ff5d354d7985
This commit is contained in:
parent
b82b8efe4c
commit
da1abea89e
|
@ -33,9 +33,11 @@ var (
|
|||
)
|
||||
|
||||
type openFile struct {
|
||||
// refCount must be 64-bit aligned for 32-bit platforms.
|
||||
refCount int64 // starts at 1; only valid if initial increment >= 2
|
||||
|
||||
*os.File
|
||||
refCount int64 // starts at 1; only valid if initial increment >= 2
|
||||
path string // map key of openFiles
|
||||
path string // map key of openFiles
|
||||
}
|
||||
|
||||
func (f *openFile) Close() error {
|
||||
|
|
Loading…
Reference in New Issue