| 795 | } |
| 796 | |
| 797 | void ReadHot(ThreadState* thread) { |
| 798 | ReadOptions options; |
| 799 | std::string value; |
| 800 | const int range = (FLAGS_num + 99) / 100; |
| 801 | for (int i = 0; i < reads_; i++) { |
| 802 | char key[100]; |
| 803 | const int k = thread->rand.Next() % range; |
| 804 | snprintf(key, sizeof(key), "%016d", k); |
| 805 | db_->Get(options, key, &value); |
| 806 | thread->stats.FinishedSingleOp(); |
| 807 | } |
| 808 | } |
| 809 | |
| 810 | void SeekRandom(ThreadState* thread) { |
| 811 | ReadOptions options; |
nothing calls this directly
no test coverage detected