Browse Source
Fix 6181/6182 (#6183)
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>pull/6188/head
Bruce
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 50 additions and 14 deletions
-
26weed/filer/filer_notify_read.go
-
19weed/server/filer_grpc_server_sub_meta.go
-
6weed/util/log_buffer/log_buffer.go
-
13weed/util/time.go
@ -0,0 +1,13 @@ |
|||||
|
package util |
||||
|
|
||||
|
import ( |
||||
|
"time" |
||||
|
) |
||||
|
|
||||
|
func GetNextDayTsNano(curTs int64) int64 { |
||||
|
curTime := time.Unix(0, curTs) |
||||
|
nextDay := curTime.AddDate(0, 0, 1).Truncate(24 * time.Hour) |
||||
|
nextDayNano := nextDay.UnixNano() |
||||
|
|
||||
|
return nextDayNano |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue