mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
lib/fs: go fmt
This commit is contained in:
parent
8141541e61
commit
a560b4788e
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ func (r *ReaderAt) MustReadAt(p []byte, off int64) {
|
|||
}
|
||||
|
||||
func (r *ReaderAt) isInPageCache(start, end int64) bool {
|
||||
if int64(len(r.mmapData)) - end < 4096 {
|
||||
if int64(len(r.mmapData))-end < 4096 {
|
||||
// If standard copy(dst, src) from Go may read beyond len(src), then this should help
|
||||
// fixing SIGBUS panic from https://github.com/VictoriaMetrics/VictoriaMetrics/issues/581
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue