MCPcopy Create free account
hub / github.com/Tencent/phxqueue / Dispose

Method Dispose

phxqueue/lock/lockdb.cpp:115–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115comm::RetCode LockDb::Dispose() {
116 if (Type::MAP == type_) {
117 map_.clear();
118 } else if (Type::LEVELDB == type_) {
119 if (nullptr != leveldb_) {
120 delete leveldb_;
121 leveldb_ = nullptr;
122 }
123 } else {
124 return comm::RetCode::RET_ERR_NO_IMPL;
125 }
126
127 return comm::RetCode::RET_OK;
128}
129
130comm::RetCode LockDb::AcquireLock(const proto::LockKeyInfo &lock_key_info,
131 const proto::LocalLockInfo &v, const bool sync) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected