mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 03:09:21 +02:00
Fixed a pager bug in the next page button when a logstream disk source was used
This bug was a sideeffect due some performance changes made in the last version
This commit is contained in:
parent
e6e6687585
commit
918cdcbb69
@ -530,7 +530,9 @@ class LogStreamDisk extends LogStream {
|
||||
// Helper variables
|
||||
$myuid = -1;
|
||||
$counter = 0;
|
||||
$tmpOldDirection = $this->_readDirection;
|
||||
$tmpOldDirection = $this->_readDirection; // Store for later use
|
||||
$tmpuID = $this->_currentOffset+1; // Store for later use
|
||||
$tmpArray = array();
|
||||
|
||||
if ( $this->_sortOrder == EnumSortingOrder::Ascending )
|
||||
{
|
||||
@ -557,12 +559,14 @@ class LogStreamDisk extends LogStream {
|
||||
|
||||
// --- Restore reading direction and file position!
|
||||
$this->_readDirection = $tmpOldDirection;
|
||||
if ( $this->_readDirection == EnumReadDirection::Forward )
|
||||
$this->Sseek($myuid, EnumSeek::BOS, 0);
|
||||
else
|
||||
$this->Sseek($myuid, EnumSeek::EOS, 0);
|
||||
$ret = $this->Read($tmpuID, $tmpArray);
|
||||
|
||||
// if ( $this->_readDirection == EnumReadDirection::Forward )
|
||||
// $this->Sseek($myuid, EnumSeek::BOS, 0);
|
||||
// else
|
||||
// $this->Sseek($myuid, EnumSeek::EOS, 0);
|
||||
// ---
|
||||
|
||||
|
||||
// Return result!
|
||||
return $this->_lastPageUID;
|
||||
}
|
||||
|
@ -850,6 +850,7 @@ if ( isset($content['Sources'][$currentSourceID]) )
|
||||
}
|
||||
else if ( $content['uid_current'] != UID_UNKNOWN )
|
||||
$content['main_pager_next_found'] = false;
|
||||
//echo $content['uid_next'] . "!!!";
|
||||
}
|
||||
// ---
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user