Searched refs:rand_key (Results 1 – 8 of 8) sorted by relevance
| /rocksdb-6.9/db_stress_tool/ |
| D | no_batched_ops_stress.cc | 309 int64_t rand_key = rand_keys[0]; in TestPut() local 314 rand_key = thread->rand.Next() % max_key; in TestPut() 320 std::string key_str = Key(rand_key); in TestPut() 325 std::string key_str2 = Key(rand_key); in TestPut() 385 int64_t rand_key = rand_keys[0]; in TestDelete() local 396 rand_key = thread->rand.Next() % max_key; in TestDelete() 402 std::string key_str = Key(rand_key); in TestDelete() 409 if (shared->AllowsOverwrite(rand_key)) { in TestDelete() 467 int64_t rand_key = rand_keys[0]; in TestDeleteRange() local 473 rand_key = in TestDeleteRange() [all …]
|
| D | batched_ops_stress.cc | 181 for (size_t rand_key = 0; rand_key < num_keys; ++rand_key) { in TestMultiGet() local 194 key_str.emplace_back(keys[key] + Key(rand_keys[rand_key])); in TestMultiGet() 204 ret_status[rand_key] = s; in TestMultiGet() 209 ret_status[rand_key] = s; in TestMultiGet()
|
| D | db_stress_test_base.h | 68 virtual std::vector<int64_t> GenerateKeys(int64_t rand_key) const { in GenerateKeys() argument 69 return {rand_key}; in GenerateKeys() 109 virtual void TestCompactRange(ThreadState* thread, int64_t rand_key,
|
| D | cf_consistency_stress.cc | 77 int64_t rand_key = rand_keys[0]; in TestDeleteRange() local 80 if (rand_key > max_key - FLAGS_range_deletion_width) { in TestDeleteRange() 81 rand_key = in TestDeleteRange() 84 std::string key_str = Key(rand_key); in TestDeleteRange() 86 std::string end_key_str = Key(rand_key + FLAGS_range_deletion_width); in TestDeleteRange()
|
| D | db_stress_test_base.cc | 568 int64_t rand_key = GenerateOneKey(thread, i); in OperateDb() local 569 std::string keystr = Key(rand_key); in OperateDb() 574 shared->GetMutexForKey(rand_column_family, rand_key))); in OperateDb() 578 TestCompactRange(thread, rand_key, key, column_family); in OperateDb() 640 std::vector<int64_t> rand_keys = GenerateKeys(rand_key); in OperateDb() 1538 void StressTest::TestCompactRange(ThreadState* thread, int64_t rand_key, in TestCompactRange() argument 1542 if (port::kMaxInt64 - rand_key < FLAGS_compact_range_width) { in TestCompactRange() 1545 end_key_num = FLAGS_compact_range_width + rand_key; in TestCompactRange()
|
| /rocksdb-6.9/cache/ |
| D | cache_bench.cc | 146 uint64_t rand_key = rnd.Next() % FLAGS_max_key; in PopulateCache() local 148 Slice key(reinterpret_cast<char*>(&rand_key), 8); in PopulateCache() 223 uint64_t rand_key = thread->rnd.Next() % FLAGS_max_key; in OperateCache() local 225 Slice key(reinterpret_cast<char*>(&rand_key), 8); in OperateCache()
|
| /rocksdb-6.9/test_util/ |
| D | transaction_test_util.cc | 148 uint64_t rand_key = rand_->Next() % num_keys_; in DoInsert() local 150 s = DBGet(db, txn, read_options_, set_i, rand_key, get_for_update, in DoInsert()
|
| /rocksdb-6.9/tools/ |
| D | db_bench_tool.cc | 5400 Random64 rand_key(key_seed); in DistGetKeyID() local 5401 key_offset = static_cast<int64_t>(rand_key.Next()) % keyrange_size_; in DistGetKeyID()
|