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

Method Build

src/leveldb/db/fault_injection_test.cc:398–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 5

ValueFunction · 0.85
KeyFunction · 0.70
ClearMethod · 0.45
PutMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected