Selaa lähdekoodia

HPCC-24128 Fix crash if mixed local/remote files

Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
Jake Smith 5 vuotta sitten
vanhempi
commit
2a22c745ab
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  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());
     }