Pārlūkot izejas kodu

HPCC-24128 Fix crash if mixed local/remote files

Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
Jake Smith 5 gadi atpakaļ
vecāks
revīzija
2a22c745ab
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  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());
     }