mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-08-20 04:46:42 +08:00
skip file with invalid format
This commit is contained in:
parent
8eb85415fb
commit
62ed2366f3
@ -221,6 +221,10 @@ func (c *LogFileEntryCollector) collectMore(v *OrderedLogVisitor) (err error) {
|
||||
continue
|
||||
}
|
||||
filerId := getFilerId(hourMinuteEntry.Name())
|
||||
if filerId == "" {
|
||||
glog.Warningf("Invalid log file name format: %s", hourMinuteEntry.Name())
|
||||
continue // Skip files with invalid format
|
||||
}
|
||||
iter, found := v.perFilerIteratorMap[filerId]
|
||||
if !found {
|
||||
iter = newLogFileQueueIterator(c.f.MasterClient, util.NewQueue[*LogFileEntry](), c.startTsNs, c.stopTsNs)
|
||||
|
Loading…
Reference in New Issue
Block a user