Fix Bug: CompactRange() doesn't change to correct level caused by using wrong level

Summary: In previous change https://reviews.facebook.net/D39099 , while renaming parameters, use a wrong parameter, causing CompactRange() to compact not wrong level.

Test Plan: Run "DBTest.MigrateToDynamicLevelMaxBytesBase" which failed with the patch.

Reviewers: rven, yhchiang, kradhakrishnan, igor, anthony

Subscribers: leveldb, dhruba

Differential Revision: https://reviews.facebook.net/D39393
main
sdong 9 years ago
parent ec7a944360
commit ac81130fa0
  1. 2
      include/rocksdb/db.h

@ -430,7 +430,7 @@ class DB {
bool change_level = false, int target_level = -1,
uint32_t target_path_id = 0) {
return CompactRange(DefaultColumnFamily(), begin, end, change_level,
change_level, target_path_id);
target_level, target_path_id);
}
virtual Status SetOptions(ColumnFamilyHandle* column_family,
const std::unordered_map<std::string, std::string>& new_options) {

Loading…
Cancel
Save