mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
fix(tsdb): survive low disk space
This commit is contained in:
1 parent
1155c17573
commit
06d387779d
6 files changed
+341
-14
No files matched your search
@@ -10,8 +10,11 @@ func (db *TSDB) Maintenance() {
|
||||
if db.closed {
|
||||
return
|
||||
}
|
||||
if !db.acceptsWrites() {
|
||||
return
|
||||
}
|
||||
|
||||
log.Println("NEZHA>> TSDB starting maintenance (flush)...")
|
||||
db.storage.DebugFlush()
|
||||
db.debugFlushSafely()
|
||||
log.Println("NEZHA>> TSDB maintenance completed")
|
||||
}
|
||||
Reference in new issue
Block a user