MCPcopy Create free account
hub / github.com/ElementsProject/elements / ReadMissing

Method ReadMissing

src/leveldb/benchmarks/db_bench.cc:785–795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783 }
784
785 void ReadMissing(ThreadState* thread) {
786 ReadOptions options;
787 std::string value;
788 for (int i = 0; i < reads_; i++) {
789 char key[100];
790 const int k = thread->rand.Next() % FLAGS_num;
791 snprintf(key, sizeof(key), "%016d.", k);
792 db_->Get(options, key, &value);
793 thread->stats.FinishedSingleOp();
794 }
795 }
796
797 void ReadHot(ThreadState* thread) {
798 ReadOptions options;

Callers

nothing calls this directly

Calls 3

NextMethod · 0.45
GetMethod · 0.45
FinishedSingleOpMethod · 0.45

Tested by

no test coverage detected