瀏覽代碼

HPCC-24128 Fix crash if mixed local/remote files

Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
Jake Smith 5 年之前
父節點
當前提交
2a22c745ab
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      ecl/hthor/hthor.cpp

+ 4 - 2
ecl/hthor/hthor.cpp

@@ -8369,9 +8369,11 @@ bool CHThorDiskReadBaseActivity::openNext()
     actualFilter.clear();
     if (translators)
     {
-        /* if previous part was remotely accessed, the format used (actualDiskMeta), became the projected meta
-         * reset here, in case this next part is access locally, in which case the published or expect meta is needed
+        /* If previous part was remotely accessed, the format used (actualDiskMeta), became the projected meta.
+         * Reset for local/direct access.
          */
+        translator = &translators->queryTranslator();
+        keyedTranslator = translators->queryKeyedTranslator();
         actualDiskMeta.set(&translators->queryActualFormat());
     }