]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/index/file/class_BaseFileIndex.php
WIP:
[core.git] / framework / main / classes / index / file / class_BaseFileIndex.php
index 84cd783432233fd3faa532ed16f23e06ac0f602f..073907dc076ed7217d44b9fc74e7da91402586d3 100644 (file)
@@ -315,8 +315,15 @@ abstract class BaseFileIndex extends BaseIndex implements FileIndexer {
         * @return      $isLoaded       Whether this index has been loaded
         */
        public function isIndexLoaded () {
-               // Trace message
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BASE-FILE-INDEX: CALLED!');
+               // Is the file gaps-only?
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BASE-INDEX: CALLED!');
+               if ($this->getIteratorInstance()->isFileGapsOnly()) {
+                       // Then skip below code as this implies the file has been fully analyzed and "loaded"
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BASE-INDEX: Underlaying file is gaps-only: Returning TRUE ... - EXIT!');
+                       return TRUE;
+               }
+
+               // Debug message
                /* DEBUG-DIE: */ ApplicationEntryPoint::exitApplication(sprintf('[%s:%d]: this=%s', __METHOD__, __LINE__, print_r($this, true)));
        }