| 1360 | |
| 1361 | template <typename T> |
| 1362 | void TmpFileGroup::CloseInternal(vector<T>& tmp_files) { |
| 1363 | for (auto& file : tmp_files) { |
| 1364 | Status status = file->Remove(); |
| 1365 | if (!status.ok()) { |
| 1366 | LOG(WARNING) << "Error removing scratch file '" << file->path() |
| 1367 | << "': " << status.msg().msg(); |
| 1368 | } |
| 1369 | } |
| 1370 | tmp_files.clear(); |
| 1371 | } |
| 1372 | |
| 1373 | void TmpFileGroup::Close() { |
| 1374 | // Cancel writes before deleting the files, since in-flight writes could re-create |