MCPcopy Create free account
hub / github.com/PaddlePaddle/Serving / destroy

Method destroy

core/cube/cube-api/src/cube_api.cpp:108–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108int CubeAPI::destroy() {
109 // Meta* meta = Meta::instance();
110 if (_meta == NULL) {
111 LOG(WARNING) << "Destroy, cube meta is null";
112 return 0;
113 }
114
115 int ret = _meta->destroy();
116
117 if (ret != 0) {
118 LOG(WARNING) << "Destroy cube meta failed";
119 }
120
121 return 0;
122}
123
124int CubeAPI::seek(const std::string& dict_name,
125 const uint64_t& key,

Callers 1

cleanupMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected