| 396 | void ReuseLogs(bool reuse) { options_.reuse_logs = reuse; } |
| 397 | |
| 398 | void Build(int start_idx, int num_vals) { |
| 399 | std::string key_space, value_space; |
| 400 | WriteBatch batch; |
| 401 | for (int i = start_idx; i < start_idx + num_vals; i++) { |
| 402 | Slice key = Key(i, &key_space); |
| 403 | batch.Clear(); |
| 404 | batch.Put(key, Value(i, &value_space)); |
| 405 | WriteOptions options; |
| 406 | ASSERT_OK(db_->Write(options, &batch)); |
| 407 | } |
| 408 | } |
| 409 | |
| 410 | Status ReadValue(int i, std::string* val) const { |
| 411 | std::string key_space, value_space; |