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

Method TearDown

src/test/immutable_object_cache/test_multi_session.cc:61–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 }
60
61 void TearDown() override {
62 for (uint64_t i = 0; i < m_session_num; i++) {
63 if (m_cache_client_vec[i] != nullptr) {
64 m_cache_client_vec[i]->close();
65 delete m_cache_client_vec[i];
66 }
67 }
68 m_cache_server->stop();
69 if (m_cache_server_thread->joinable()) {
70 m_cache_server_thread->join();
71 }
72 delete m_cache_server;
73 delete m_cache_server_thread;
74
75 std::remove(m_local_path.c_str());
76 }
77
78 CacheClient* create_session(uint64_t random_index) {
79 CacheClient* cache_client = new CacheClient(m_local_path, g_ceph_context);

Callers

nothing calls this directly

Calls 6

joinableMethod · 0.80
removeFunction · 0.50
closeMethod · 0.45
stopMethod · 0.45
joinMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected