From 53c931794872f261bc272e371a974e0a76b00aa8 Mon Sep 17 00:00:00 2001 From: conradverm Date: Wed, 24 Oct 2007 04:28:55 +0000 Subject: [PATCH] KTS-673 "The search algorithm needs some work" Updated. Undo lockfile on main indexing --- search2/indexing/indexerCore.inc.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/search2/indexing/indexerCore.inc.php b/search2/indexing/indexerCore.inc.php index 72c75ef..3b601e7 100755 --- a/search2/indexing/indexerCore.inc.php +++ b/search2/indexing/indexerCore.inc.php @@ -714,14 +714,14 @@ abstract class Indexer global $default; $config =& KTConfig::getSingleton(); - $indexLockFile = $config->get('cache/cacheDirectory') . '/main.index.lock'; + /*$indexLockFile = $config->get('cache/cacheDirectory') . '/main.index.lock'; if (is_file($indexLockFile)) { $default->log->info('indexDocuments: main.index.lock seems to exist. it could be that the indexing is still underway.'); $default->log->info('indexDocuments: Remove "' . $indexLockFile . '" if the indexing is not running or extend the frequency at which the background task runs!'); return; } - touch($indexLockFile); + touch($indexLockFile);*/ $this->checkForRegisteredTypes(); @@ -729,7 +729,7 @@ abstract class Indexer $default->log->info('indexDocuments: start'); if (!$this->doesDiagnosticsPass()) { - unlink($indexLockFile); + //unlink($indexLockFile); return; } @@ -761,14 +761,14 @@ abstract class Indexer $result = DBUtil::getResultArray($sql); if (PEAR::isError($result)) { - unlink($indexLockFile); + //unlink($indexLockFile); return; } // bail if no work to do if (count($result) == 0) { - unlink($indexLockFile); + //unlink($indexLockFile); return; } @@ -976,7 +976,7 @@ abstract class Indexer } $default->log->info('indexDocuments: done'); - unlink($indexLockFile); + //unlink($indexLockFile); } public function migrateDocuments($max=null) -- libgit2 0.21.4