MCPcopy Create free account
hub / github.com/Tencent/embedx / TouchSuccessFile

Function TouchSuccessFile

src/graph/server/dist_graph_server.cc:37–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35namespace {
36
37void TouchSuccessFile(const GraphConfig& config) {
38 if (config.success_out().empty()) {
39 DXINFO("'success_out' directory is empty.");
40 return;
41 }
42
43 std::string out_file =
44 config.success_out() + "/_SUCCESS" + std::to_string(config.shard_id());
45 DXINFO("Touch 'success_out' file: %s.", out_file.c_str());
46 deepx_core::AutoOutputFileStream os;
47 DXCHECK_THROW(os.Open(out_file));
48 os.Close();
49}
50
51} // namespace
52

Callers 1

StartMethod · 0.85

Calls 3

shard_idMethod · 0.80
OpenMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected