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

Method Valid

phxqueue/lock/lockdb.cpp:491–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491bool LockDb::Valid() {
492 if (Type::MAP == type_) {
493 return map_.end() != map_it_;
494 } else if (Type::LEVELDB == type_) {
495 return leveldb_it_->Valid();
496 }
497
498 return false;
499}
500
501comm::RetCode LockDb::GetCurrent(string &k, proto::LocalLockInfo &v) {
502 if (Type::MAP == type_) {

Callers 1

InitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected