mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 08:08:45 +05:00
Implement fix for fwv single file processing
This commit is contained in:
committed by
Dan Christian Bogos
parent
07ff6e9c00
commit
637e0f935f
@@ -176,6 +176,9 @@ func (rdr *FWVFileER) processFile(fPath, fName string) (err error) {
|
||||
continue
|
||||
}
|
||||
}
|
||||
if rdr.offset >= rdr.trailerOffset {
|
||||
break
|
||||
}
|
||||
|
||||
buf := make([]byte, rdr.lineLen)
|
||||
if nRead, err := file.Read(buf); err != nil {
|
||||
@@ -224,7 +227,7 @@ func (rdr *FWVFileER) processFile(fPath, fName string) (err error) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
rdr.offset = 0
|
||||
utils.Logger.Info(
|
||||
fmt.Sprintf("%s finished processing file <%s>. Total records processed: %d, events posted: %d, run duration: %s",
|
||||
utils.ERs, absPath, rowNr, evsPosted, time.Now().Sub(timeStart)))
|
||||
|
||||
Reference in New Issue
Block a user