diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-08-29 17:37:19 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-08-29 17:37:19 -0700 |
| commit | b69cb74c033376d6738ef1537593c2349196bdb6 (patch) | |
| tree | a894c06765bd8a4f078b042626d3d82cb2857ada /weed/filer2/filer.go | |
| parent | 063c9ddac5277f4c20489129223f2c49ce51ad3b (diff) | |
| download | seaweedfs-b69cb74c033376d6738ef1537593c2349196bdb6.tar.xz seaweedfs-b69cb74c033376d6738ef1537593c2349196bdb6.zip | |
read meta logs by timestamp
pass in event ts when moving logs
meta aggregator reads in memory logs only
Diffstat (limited to 'weed/filer2/filer.go')
| -rw-r--r-- | weed/filer2/filer.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/weed/filer2/filer.go b/weed/filer2/filer.go index d8929f88f..4c3caec7e 100644 --- a/weed/filer2/filer.go +++ b/weed/filer2/filer.go @@ -16,7 +16,10 @@ import ( "github.com/chrislusf/seaweedfs/weed/wdclient" ) -const PaginationSize = 1024 * 256 +const ( + LogFlushInterval = time.Minute + PaginationSize = 1024 * 256 +) var ( OS_UID = uint32(os.Getuid()) @@ -47,7 +50,7 @@ func NewFiler(masters []string, grpcDialOption grpc.DialOption, GrpcDialOption: grpcDialOption, Signature: util.RandomInt32(), } - f.LocalMetaLogBuffer = log_buffer.NewLogBuffer(time.Minute, f.logFlushFunc, notifyFn) + f.LocalMetaLogBuffer = log_buffer.NewLogBuffer(LogFlushInterval, f.logFlushFunc, notifyFn) f.metaLogCollection = collection f.metaLogReplication = replication |
