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

Method Remove

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

Source from the content-addressed store, hash-verified

1003}
1004
1005Status TmpFileLocal::Remove() {
1006 // Remove the file if present (it may not be present if no writes completed).
1007 Status status = FileSystemUtil::RemovePaths({path_});
1008 int64_t bytes_in_use = file_group_->tmp_file_mgr_->punch_holes() ?
1009 allocation_offset_ - bytes_reclaimed_.Load() :
1010 allocation_offset_;
1011 GetDir()->bytes_used_metric()->Increment(-bytes_in_use);
1012 return status;
1013}
1014
1015TmpFileRemote::TmpFileRemote(TmpFileGroup* file_group, TmpFileMgr::DeviceId device_id,
1016 const std::string& path, const std::string& local_buffer_path, bool expected_local,

Callers 4

UnregisterSubscriberMethod · 0.45
DecrementPerUserMethod · 0.45
WaitOnQueuedMethod · 0.45
CloseInternalMethod · 0.45

Calls 15

OKFunction · 0.85
punch_holesMethod · 0.80
bytes_used_metricMethod · 0.80
GetFileLockMethod · 0.80
GetFileStatusMethod · 0.80
pathMethod · 0.80
IsSpaceReservedMethod · 0.80
EnqueueTmpFilesPoolMethod · 0.80
LoadMethod · 0.45
IncrementMethod · 0.45

Tested by 1

UnregisterSubscriberMethod · 0.36