MCPcopy Create free account
hub / github.com/apache/impala / CloseInternal

Method CloseInternal

be/src/runtime/tmp-file-mgr.cc:1362–1371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1360
1361template <typename T>
1362void 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
1373void TmpFileGroup::Close() {
1374 // Cancel writes before deleting the files, since in-flight writes could re-create

Callers

nothing calls this directly

Calls 4

pathMethod · 0.80
clearMethod · 0.65
RemoveMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected