[RocksDB] Fix DBTest.UniversalCompactionSizeAmplification too

Summary: as title

Test Plan: make db_test; ./db_test

Reviewers: dhruba

Reviewed By: dhruba

CC: leveldb

Differential Revision: https://reviews.facebook.net/D13005
main
Haobo Xu 11 years ago
parent 5b76338c01
commit 72fcbf055d
  1. 4
      db/db_test.cc

@ -1732,7 +1732,7 @@ TEST(DBTest, UniversalCompactionSizeAmplification) {
Options options = CurrentOptions(); Options options = CurrentOptions();
options.compaction_style = kCompactionStyleUniversal; options.compaction_style = kCompactionStyleUniversal;
options.write_buffer_size = 100<<10; //100KB options.write_buffer_size = 100<<10; //100KB
options.level0_file_num_compaction_trigger = 2; options.level0_file_num_compaction_trigger = 3;
// Trigger compaction if size amplification exceeds 110% // Trigger compaction if size amplification exceeds 110%
options.compaction_options_universal. options.compaction_options_universal.
@ -1744,7 +1744,7 @@ TEST(DBTest, UniversalCompactionSizeAmplification) {
// Generate two files in Level 0. Both files are approx the same size. // Generate two files in Level 0. Both files are approx the same size.
for (int num = 0; for (int num = 0;
num < options.level0_file_num_compaction_trigger; num < options.level0_file_num_compaction_trigger-1;
num++) { num++) {
// Write 120KB (12 values, each 10K) // Write 120KB (12 values, each 10K)
for (int i = 0; i < 12; i++) { for (int i = 0; i < 12; i++) {

Loading…
Cancel
Save