Patch for concurrent iterator & others (onto v1.11.6) #386
@ -125,11 +125,11 @@ func monitorFreeDiskSpace(sigc chan os.Signal, path string, freeDiskSpaceCritica
|
||||
break
|
||||
}
|
||||
if freeSpace < freeDiskSpaceCritical {
|
||||
log.Error("Low disk space. Gracefully shutting down Geth to prevent database corruption.", "available", common.StorageSize(freeSpace))
|
||||
log.Error("Low disk space. Gracefully shutting down Geth to prevent database corruption.", "available", common.StorageSize(freeSpace), "path", path)
|
||||
sigc <- syscall.SIGTERM
|
||||
break
|
||||
} else if freeSpace < 2*freeDiskSpaceCritical {
|
||||
log.Warn("Disk space is running low. Geth will shutdown if disk space runs below critical level.", "available", common.StorageSize(freeSpace), "critical_level", common.StorageSize(freeDiskSpaceCritical))
|
||||
log.Warn("Disk space is running low. Geth will shutdown if disk space runs below critical level.", "available", common.StorageSize(freeSpace), "critical_level", common.StorageSize(freeDiskSpaceCritical), "path", path)
|
||||
}
|
||||
time.Sleep(30 * time.Second)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user