Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed 64-bit alignment panic in chunkedContentCoder on 32-bit platforms.
Following the fix in blevesearch#147, a 'panic: unaligned 64-bit atomic operation' is still occurring on some platforms. As noted in blevesearch#147, this commit implements the alternative fix by placing the bytesWritten field at the top of the struct. Per the Golang sync/atomic documentation, on ARM, 386 and 32-bit MIPS systems, this is the reliable way to prevent these issues. Signed-off-by: Callum Jones <[email protected]>
- Loading branch information