Home
last modified time | relevance | path

Searched refs:rand_key (Results 1 – 8 of 8) sorted by relevance

/rocksdb-6.9/db_stress_tool/
Dno_batched_ops_stress.cc309 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 …]
Dbatched_ops_stress.cc181 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()
Ddb_stress_test_base.h68 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,
Dcf_consistency_stress.cc77 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()
Ddb_stress_test_base.cc568 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/
Dcache_bench.cc146 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/
Dtransaction_test_util.cc148 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/
Ddb_bench_tool.cc5400 Random64 rand_key(key_seed); in DistGetKeyID() local
5401 key_offset = static_cast<int64_t>(rand_key.Next()) % keyrange_size_; in DistGetKeyID()