aboutsummaryrefslogtreecommitdiff
path: root/weed/util/log_buffer
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2024-01-05 15:16:22 -0800
committerchrislu <chris.lu@gmail.com>2024-01-05 15:16:22 -0800
commitadd16fb1a17995f19a9e30434889377ccb50e8f4 (patch)
treec1c789a2f1f2c14f4fb6a1fc7605e33050e774b2 /weed/util/log_buffer
parentddd0fde0949b36809ad589c257aeb9fb60f2d3f0 (diff)
downloadseaweedfs-add16fb1a17995f19a9e30434889377ccb50e8f4.tar.xz
seaweedfs-add16fb1a17995f19a9e30434889377ccb50e8f4.zip
logs
Diffstat (limited to 'weed/util/log_buffer')
-rw-r--r--weed/util/log_buffer/log_buffer.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/util/log_buffer/log_buffer.go b/weed/util/log_buffer/log_buffer.go
index bd124908e..3a91d23b2 100644
--- a/weed/util/log_buffer/log_buffer.go
+++ b/weed/util/log_buffer/log_buffer.go
@@ -116,7 +116,7 @@ func (m *LogBuffer) AddToBuffer(partitionKey, data []byte, processingTsNs int64)
copy(m.buf[m.pos+4:m.pos+4+size], logEntryData)
m.pos += size + 4
- // fmt.Printf("entry size %d total %d count %d, buffer:%p\n", size, m.pos, len(m.idx), m)
+ // fmt.Printf("partitionKey %v entry size %d total %d count %d\n", string(partitionKey), size, m.pos, len(m.idx))
}
@@ -157,6 +157,8 @@ func (m *LogBuffer) loopInterval() {
m.Unlock()
if toFlush != nil {
m.flushChan <- toFlush
+ } else {
+ // glog.V(0).Infof("%s no flush", m.name)
}
}
}