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

Method SeekToFirst

phxqueue/lock/lockdb.cpp:471–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471void LockDb::SeekToFirst() {
472 if (Type::MAP == type_) {
473 map_it_ = map_.cbegin();
474 } else if (Type::LEVELDB == type_) {
475 leveldb::ReadOptions options;
476 // force checksum verification
477 options.verify_checksums = leveldb_checks_;
478 leveldb_it_ = leveldb_->NewIterator(options);
479 leveldb_it_->SeekToFirst();
480 }
481}
482
483void LockDb::Next() {
484 if (Type::MAP == type_) {

Callers 1

InitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected