|
|
@ -2965,7 +2965,6 @@ TEST_F(DBTest, DynamicMemtableOptions) { |
|
|
|
const uint64_t k64KB = 1 << 16; |
|
|
|
const uint64_t k64KB = 1 << 16; |
|
|
|
const uint64_t k128KB = 1 << 17; |
|
|
|
const uint64_t k128KB = 1 << 17; |
|
|
|
const uint64_t k5KB = 5 * 1024; |
|
|
|
const uint64_t k5KB = 5 * 1024; |
|
|
|
const int kNumPutsBeforeWaitForFlush = 64; |
|
|
|
|
|
|
|
Options options; |
|
|
|
Options options; |
|
|
|
options.env = env_; |
|
|
|
options.env = env_; |
|
|
|
options.create_if_missing = true; |
|
|
|
options.create_if_missing = true; |
|
|
@ -2981,6 +2980,7 @@ TEST_F(DBTest, DynamicMemtableOptions) { |
|
|
|
DestroyAndReopen(options); |
|
|
|
DestroyAndReopen(options); |
|
|
|
|
|
|
|
|
|
|
|
auto gen_l0_kb = [this](int size) { |
|
|
|
auto gen_l0_kb = [this](int size) { |
|
|
|
|
|
|
|
const int kNumPutsBeforeWaitForFlush = 64; |
|
|
|
Random rnd(301); |
|
|
|
Random rnd(301); |
|
|
|
for (int i = 0; i < size; i++) { |
|
|
|
for (int i = 0; i < size; i++) { |
|
|
|
ASSERT_OK(Put(Key(i), RandomString(&rnd, 1024))); |
|
|
|
ASSERT_OK(Put(Key(i), RandomString(&rnd, 1024))); |
|
|
|