Quellcode durchsuchen

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 vor 10 Jahren
Ursprung
Commit
731796749e
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  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)