From 5adea57224d4b487eb1b2328255c649faa8fdc1a Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 3 Sep 2025 21:54:51 -0700 Subject: [PATCH] Update weed/util/log_buffer/log_buffer.go Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- weed/util/log_buffer/log_buffer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/util/log_buffer/log_buffer.go b/weed/util/log_buffer/log_buffer.go index 8c9e222af..15ea062c6 100644 --- a/weed/util/log_buffer/log_buffer.go +++ b/weed/util/log_buffer/log_buffer.go @@ -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()