mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 12:31:07 +01:00
lib/{fs,filestream}: small consistency-related updates after cc90a548b1
This commit is contained in:
parent
cc90a548b1
commit
7673839228
@ -20,8 +20,8 @@ func (st *streamTracker) adviseDontNeed(n int, fdatasync bool) error {
|
||||
return fmt.Errorf("unix.Fsync error: %w", err)
|
||||
}
|
||||
}
|
||||
st.offset += blockSize
|
||||
st.length -= blockSize
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -338,6 +338,5 @@ func mustGetFreeSpace(path string) uint64 {
|
||||
if err := unix.Fstatfs(int(fd), &stat); err != nil {
|
||||
logger.Panicf("FATAL: cannot determine free disk space on %q: %s", path, err)
|
||||
}
|
||||
|
||||
return freeSpace(stat)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user