mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 03:09:21 +02:00
Fixed a performance issue in the logstream db and pdo drivers when using filters.
This commit is contained in:
parent
b2a1df9ca0
commit
a0d52df81e
@ -1035,6 +1035,11 @@ class LogStreamDB extends LogStream {
|
||||
$iBegin++;
|
||||
}
|
||||
|
||||
// --- Check if results were found
|
||||
if ( $iBegin == $this->_currentRecordNum )
|
||||
return ERROR_NOMORERECORDS;
|
||||
// ---
|
||||
|
||||
// Free Query ressources
|
||||
mysql_free_result ($myquery);
|
||||
|
||||
|
@ -1065,6 +1065,11 @@ class LogStreamPDO extends LogStream {
|
||||
$iCount++;
|
||||
}
|
||||
|
||||
// --- Check if results were found
|
||||
if ( $iBegin == $this->_currentRecordNum )
|
||||
return ERROR_NOMORERECORDS;
|
||||
// ---
|
||||
|
||||
// return success state if reached this point!
|
||||
return SUCCESS;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user