Skip to content

Commit

Permalink
Set used to 0 as well
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonip committed Jan 31, 2025
1 parent 615e94d commit 7bcfc60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x-pack/apm-server/sampling/eventstorage/storage_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ func (sm *StorageManager) updateDiskUsage() {
if err != nil {
sm.logger.With(logp.Error(err)).Warn("failed to get disk usage")
sm.getDiskUsageFailed.Store(true)
sm.cachedDiskStat.used.Store(0)
sm.cachedDiskStat.total.Store(0) // setting total to 0 to disable any running disk usage threshold checks
return
}
Expand Down

0 comments on commit 7bcfc60

Please sign in to comment.