Fix 6181/6182 (#6183)

* set larger buf size for LogBuffer

* jump to next day when no more entry found

* Update weed/filer/filer_notify_read.go

---------

Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
This commit is contained in:
BruceandChris Lu authored and GitHub committed 2024-10-31 08:40:05 -07:00
1 parent c29c912bdc
commit 0060a2cf9c
4 files changed
+50 -14

No files matched your search

+3 -3
View File
@@ -2,7 +2,6 @@ package log_buffer
import (
"bytes"
"github.com/seaweedfs/seaweedfs/weed/pb/mq_pb"
"sync"
"sync/atomic"
"time"
@@ -11,11 +10,12 @@ import (
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"github.com/seaweedfs/seaweedfs/weed/pb/mq_pb"
"github.com/seaweedfs/seaweedfs/weed/util"
)
const BufferSize = 4 * 1024 * 1024
const PreviousBufferCount = 3
const BufferSize = 8 * 1024 * 1024
const PreviousBufferCount = 32
type dataToFlush struct {
startTime time.Time