MCPcopy Create free account
hub / github.com/ceph/ceph / remove_cleanup_file

Function remove_cleanup_file

src/common/admin_socket.cc:101–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99static bool cleanup_atexit = false;
100
101static void remove_cleanup_file(std::string_view file) {
102 std::unique_lock l(cleanup_lock);
103
104 if (auto i = std::find(cleanup_files.cbegin(), cleanup_files.cend(), file);
105 i != cleanup_files.cend()) {
106 retry_sys_call(::unlink, i->c_str());
107 cleanup_files.erase(i);
108 }
109}
110
111void remove_all_cleanup_files() {
112 std::unique_lock l(cleanup_lock);

Callers 1

shutdownMethod · 0.70

Calls 6

findFunction · 0.85
retry_sys_callFunction · 0.85
cbeginMethod · 0.45
cendMethod · 0.45
c_strMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected