mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 07:38:45 +05:00
CDRC - Exclude normal .csv out of partial records checks, thanks @tomaszdomin-arevocom
This commit is contained in:
10
cdrc/csv.go
10
cdrc/csv.go
@@ -207,10 +207,12 @@ func (self *CsvRecordsProcessor) ProcessNextRecord() ([]*engine.StoredCdr, error
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if record, err = self.processPartialRecord(record); err != nil {
|
||||
return nil, err
|
||||
} else if record == nil {
|
||||
return nil, nil // Due to partial, none returned
|
||||
if utils.IsSliceMember([]string{utils.KAM_FLATSTORE, utils.OSIPS_FLATSTORE}, self.cdrFormat) {
|
||||
if record, err = self.processPartialRecord(record); err != nil {
|
||||
return nil, err
|
||||
} else if record == nil {
|
||||
return nil, nil // Due to partial, none returned
|
||||
}
|
||||
}
|
||||
// Record was overwriten with complete information out of cache
|
||||
return self.processRecord(record)
|
||||
|
||||
Reference in New Issue
Block a user