mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-08 15:41:15 +02:00
Update weed/util/log_buffer/log_buffer.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
gemini-code-assist[bot]
parent
d192536376
commit
5adea57224
@@ -64,7 +64,7 @@ func NewLogBuffer(name string, flushInterval time.Duration, flushFn LogFlushFunc
|
||||
notifyFn: notifyFn,
|
||||
flushChan: make(chan *dataToFlush, 256),
|
||||
isStopping: new(atomic.Bool),
|
||||
batchIndex: time.Now().UnixNano(), // Initialize with process start time for uniqueness
|
||||
batchIndex: time.Now().UnixNano(), // Initialize with creation time for uniqueness across restarts
|
||||
}
|
||||
go lb.loopFlush()
|
||||
go lb.loopInterval()
|
||||
|
||||
Reference in New Issue
Block a user