Continued with indexes/stacks:
[core.git] / inc / classes / main / stacker / file / class_BaseFileStack.php
index f5050899ae5bca521b466e209daf0cb99fe97366..4ff2dfc5179d3afd32462d8ac5c6a4c4e6eb2988 100644 (file)
@@ -442,9 +442,10 @@ class BaseFileStack extends BaseStacker {
         * Initializes this file-based stack.
         *
         * @param       $fileName       File name of this stack
+        * @param       $type           Type of this stack (e.g. url_source for URL sources)
         * @return      void
         */
-       protected function initFileStack ($fileName) {
+       protected function initFileStack ($fileName, $type) {
                // Get a file i/o pointer instance for stack file
                $pointerInstance = ObjectFactory::createObjectByConfiguredName('file_raw_input_output_class', array($fileName));
 
@@ -476,7 +477,7 @@ class BaseFileStack extends BaseStacker {
                 * Get stack index instance. This can be used for faster
                 * "defragmentation" and startup.
                 */
-               $indexInstance = FileStackIndexFactory::createFileStackIndex($fileName);
+               $indexInstance = FileStackIndexFactory::createFileStackIndexInstance($fileName, $type);
 
                // And set it here
                $this->setIndexInstance($indexInstance);