CDRC - Exclude normal .csv out of partial records checks, thanks @tomaszdomin-arevocom

This commit is contained in:
DanB
2015-07-29 09:02:41 +02:00
parent 2236be7939
commit 4d7c49dba3

View File

@@ -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)