| 113 | } |
| 114 | |
| 115 | comm::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 | |
| 130 | comm::RetCode LockDb::AcquireLock(const proto::LockKeyInfo &lock_key_info, |
| 131 | const proto::LocalLockInfo &v, const bool sync) { |
nothing calls this directly
no outgoing calls
no test coverage detected