| 752 | } |
| 753 | |
| 754 | void ReadReverse(ThreadState* thread) { |
| 755 | Iterator* iter = db_->NewIterator(ReadOptions()); |
| 756 | int i = 0; |
| 757 | int64_t bytes = 0; |
| 758 | for (iter->SeekToLast(); i < reads_ && iter->Valid(); iter->Prev()) { |
| 759 | bytes += iter->key().size() + iter->value().size(); |
| 760 | thread->stats.FinishedSingleOp(); |
| 761 | ++i; |
| 762 | } |
| 763 | delete iter; |
| 764 | thread->stats.AddBytes(bytes); |
| 765 | } |
| 766 | |
| 767 | void ReadRandom(ThreadState* thread) { |
| 768 | ReadOptions options; |
nothing calls this directly
no test coverage detected