From: Roland Haeder Date: Sun, 18 May 2014 09:27:59 +0000 (+0200) Subject: Always read file header. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=07c720fdaa74d214b08b4888abaee3c09ce074de;p=core.git Always read file header. Signed-off-by: Roland Häder --- diff --git a/inc/classes/main/stacker/file/class_BaseFileStack.php b/inc/classes/main/stacker/file/class_BaseFileStack.php index b4a91330..c768db3e 100644 --- a/inc/classes/main/stacker/file/class_BaseFileStack.php +++ b/inc/classes/main/stacker/file/class_BaseFileStack.php @@ -405,16 +405,18 @@ class BaseFileStack extends BaseStacker { $this->setIteratorInstance($iteratorInstance); // Is the file's header initialized? - if ($this->isFileHeaderInitialized()) { - // Then load it - $this->readFileHeader(); - } else { + if (!$this->isFileHeaderInitialized()) { // No, then create it (which may pre-allocate the stack) $this->createFileHeader(); // And pre-allocate a bit $this->preAllocateFile(); - } + } // END - if + + // Load the file header + $this->readFileHeader(); + + // Try to read file stack to speed up its processing. } /**