Home
last modified time | relevance | path

Searched refs:max_key (Results 1 – 11 of 11) sorted by relevance

/rocksdb-6.9/db_stress_tool/
Dno_batched_ops_stress.cc23 const int64_t max_key = shared->GetMaxKey(); in VerifyDb() local
24 const int64_t keys_per_thread = max_key / shared->GetNumThreads(); in VerifyDb()
30 end = max_key; in VerifyDb()
308 int64_t max_key = shared->GetMaxKey(); in TestPut() local
314 rand_key = thread->rand.Next() % max_key; in TestPut()
388 int64_t max_key = shared->GetMaxKey(); in TestDelete() local
396 rand_key = thread->rand.Next() % max_key; in TestDelete()
470 int64_t max_key = shared->GetMaxKey(); in TestDeleteRange() local
471 if (rand_key > max_key - FLAGS_range_deletion_width) { in TestDeleteRange()
474 thread->rand.Next() % (max_key - FLAGS_range_deletion_width + 1); in TestDeleteRange()
Ddb_stress_common.cc64 int64_t GetOneHotKeyID(double rand_seed, int64_t max_key) { in GetOneHotKeyID() argument
77 int64_t tmp_zipf_seed = zipf * max_key / zipf_sum_size; in GetOneHotKeyID()
79 return rand_local.Next() % max_key; in GetOneHotKeyID()
Dcf_consistency_stress.cc79 int64_t max_key = shared->GetMaxKey(); in TestDeleteRange() local
80 if (rand_key > max_key - FLAGS_range_deletion_width) { in TestDeleteRange()
82 thread->rand.Next() % (max_key - FLAGS_range_deletion_width + 1); in TestDeleteRange()
Ddb_stress_common.h83 DECLARE_int64(max_key);
513 extern int64_t GetOneHotKeyID(double rand_seed, int64_t max_key);
Ddb_stress_gflags.cc28 DEFINE_int64(max_key, 1 * KB * KB,
Ddb_stress_shared_state.h17 DECLARE_int64(max_key);
/rocksdb-6.9/db/
Ddb_iter_stress_test.cc406 auto gen_key = [&](int max_key) { in TEST_F() argument
407 assert(max_key > 0); in TEST_F()
409 int a = max_key; in TEST_F()
414 std::string s = ToString(rnd.Next() % static_cast<uint64_t>(max_key)); in TEST_F()
457 int max_key = (int)(num_entries * key_space) + 1; in TEST_F() local
460 e.key = gen_key(max_key); in TEST_F()
562 old_key = gen_key(max_key); in TEST_F()
/rocksdb-6.9/utilities/backupable/
Dbackupable_db_test.cc738 const int max_key = keys_iteration * 4 + 10; in TEST_P() local
753 int fill_up_to = std::min(keys_iteration * (i + 1), max_key); in TEST_P()
775 AssertBackupConsistency(0, 0, fill_up_to, max_key); in TEST_P()
785 const int max_key = keys_iteration * 4 + 10; in TEST_P() local
799 int fill_up_to = std::min(keys_iteration * (i + 1), max_key); in TEST_P()
811 AssertEmpty(db, 0, max_key); in TEST_P()
822 int fill_up_to = std::min(keys_iteration * i, max_key); in TEST_P()
823 AssertBackupConsistency(i, 0, fill_up_to, max_key); in TEST_P()
836 AssertBackupConsistency(3, 0, 3 * keys_iteration, max_key); in TEST_P()
838 AssertBackupConsistency(5, 0, max_key); in TEST_P()
/rocksdb-6.9/cache/
Dcache_bench.cc36 DEFINE_int64(max_key, 1 * KB * KB * KB, "Max number of key to place in cache");
/rocksdb-6.9/table/block_based/
Dblock_test.cc149 void CheckBlockContents(BlockContents contents, const int max_key, in CheckBlockContents() argument
179 for (int i = 1; i < max_key - 1; i += 2) { in CheckBlockContents()
/rocksdb-6.9/memtable/
Dinlineskiplist_test.cc161 uint64_t max_key = R - 1; in TEST_F() local
162 iter.SeekForPrev(Encode(&max_key)); in TEST_F()