Commit f99fbfc71ae8f2219c3f8bf71cfccff767b6421d
1 parent
6678c9f6
Merged in...
KTS-3806 "The number of documents in the indexing queue is incorrect on the Document Indexer Statistics dashlet" Fixed. Adjusted sql to ignore problem documents. Committed by: Megan Watson Reviewed by: Conrad Vermeulen git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/branches/3.5.4-Release-Branch@9514 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
search2/indexing/indexerCore.inc.php
| @@ -1069,7 +1069,7 @@ abstract class Indexer | @@ -1069,7 +1069,7 @@ abstract class Indexer | ||
| 1069 | $docsInIndex = $index->getDocumentsInIndex(); | 1069 | $docsInIndex = $index->getDocumentsInIndex(); |
| 1070 | 1070 | ||
| 1071 | // we are only interested in documents that are active | 1071 | // we are only interested in documents that are active |
| 1072 | - $sql = "SELECT count(*) as docsInQueue FROM index_files i inner join documents d on i.document_id = d.id where d.status_id=1"; | 1072 | + $sql = "SELECT count(*) as docsInQueue FROM index_files i inner join documents d on i.document_id = d.id where (i.status_msg is null or i.status_msg = '') and d.status_id=1"; |
| 1073 | $docsInQueue = DBUtil::getOneResultKey($sql, 'docsInQueue'); | 1073 | $docsInQueue = DBUtil::getOneResultKey($sql, 'docsInQueue'); |
| 1074 | 1074 | ||
| 1075 | $sql = "SELECT count(*) as errorsInQueue FROM index_files i inner join documents d on i.document_id = d.id where (i.status_msg is not null or i.status_msg <> '') and d.status_id=1"; | 1075 | $sql = "SELECT count(*) as errorsInQueue FROM index_files i inner join documents d on i.document_id = d.id where (i.status_msg is not null or i.status_msg <> '') and d.status_id=1"; |