mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 00:13:30 +01:00
lib/logstorage: fix free space check (#5113)
Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>
This commit is contained in:
parent
c0b478d47f
commit
85b604d414
@ -541,7 +541,7 @@ func (s *Storage) UpdateStats(ss *StorageStats) {
|
||||
// IsReadOnly returns true if s is in read-only mode.
|
||||
func (s *Storage) IsReadOnly() bool {
|
||||
available := fs.MustGetFreeSpace(s.path)
|
||||
return available > s.minFreeDiskSpaceBytes
|
||||
return available < s.minFreeDiskSpaceBytes
|
||||
}
|
||||
|
||||
func (s *Storage) debugFlush() {
|
||||
|
Loading…
Reference in New Issue
Block a user