MCPcopy Create free account
hub / github.com/bytedance/bolt / removeSpillDirectoryIfExists

Method removeSpillDirectoryIfExists

bolt/exec/Task.cpp:520–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518}
519
520void Task::removeSpillDirectoryIfExists() {
521 if (spillDirectory_.empty() || !spillDirectoryCreated_) {
522 return;
523 }
524 try {
525 auto fs = filesystems::getFileSystem(spillDirectory_, nullptr);
526 fs->rmdir(spillDirectory_);
527 } catch (const std::exception& e) {
528 LOG(ERROR) << "Failed to remove spill directory '" << spillDirectory_
529 << "' for Task " << taskId() << ": " << e.what();
530 }
531}
532
533void Task::initTaskPool() {
534 BOLT_CHECK_NULL(pool_);

Callers

nothing calls this directly

Calls 4

getFileSystemFunction · 0.85
emptyMethod · 0.45
rmdirMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected