Преглед на файлове

Merge pull request #7123 from jakesmith/hpcc-13247

HPCC-13247 Delete temporary spill file from smart buffer

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday преди 10 години
родител
ревизия
731796749e
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      thorlcr/thorutil/thbuf.cpp

+ 5 - 0
thorlcr/thorutil/thbuf.cpp

@@ -284,6 +284,11 @@ public:
         while (out->ordinality()) 
             ReleaseThorRow(out->dequeue());
         delete out;
+        if (fileio)
+        {
+            fileio.clear();
+            file->remove();
+        }
     }
 
     void putRow(const void *row)