Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

add logs on flush

chrislu1206313952d4
diff --git a/weed/util/log_buffer/log_buffer.go b/weed/util/log_buffer/log_buffer.go
index 3a91d23b29..c9eeb47a6b 100644
--- a/weed/util/log_buffer/log_buffer.go
+++ b/weed/util/log_buffer/log_buffer.go
@@ -156,6 +156,7 @@ func (m *LogBuffer) loopInterval() {
toFlush := m.copyToFlush()
m.Unlock()
if toFlush != nil {
+ glog.V(0).Infof("%s flush [%v, %v] size %d", m.name, toFlush.startTime, toFlush.stopTime, len(toFlush.data.Bytes()))
m.flushChan <- toFlush
} else {
// glog.V(0).Infof("%s no flush", m.name)