mirror of
https://github.com/hanzoai/metrics.git
synced 2026-10-30 20:03:39 +00:00
This flag allows disabling the mincore() syscall introduced in
1faf525f76. On older ZFS filesystems,
mincore() may trigger a bug related to ZFSÕs own in-memory cache. Mixing
reads from mmap()ed files and direct disk reads can corrupt the ZFS ARC
cache and lead to data read corruption.
Fixes https://github.com/VictoriaMetrics/VictoriaMetrics/issues/10327
16 lines
173 B
Go
16 lines
173 B
Go
//go:build !linux
|
|
|
|
package fs
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func supportsMincore() bool {
|
|
return false
|
|
}
|
|
|
|
func mincore(ptr *byte) bool {
|
|
panic(fmt.Errorf("BUG: unexpected call"))
|
|
}
|