Yueh-Hsuan Chiang 052ddbe0e2 Add MaxInputLevel() to CompactionPicker
Summary:
Having if-then branch for different compaction strategies is considered
hacky and make CompactionPicker less pluggable.  This diff removes two
of such if-then branches in version_set.cc by adding MaxInputLevel() to
CompactionPicker.

    // Given the current number of levels, returns the lowest allowed level
    // for compaction input.
    virtual int MaxInputLevel(int current_num_levels) const;

Test Plan:
make db_test
export ROCKSDB_TESTS=Compaction
./db_test

Reviewers: igor, sdong, ljin

Reviewed By: ljin

Subscribers: leveldb

Differential Revision: https://reviews.facebook.net/D19971
2014-07-17 18:01:04 -07:00
..
2014-07-08 12:31:49 -07:00
2014-07-08 12:31:49 -07:00
2014-07-10 12:55:53 -07:00
2014-07-10 12:55:53 -07:00
2014-06-20 10:23:02 +02:00
2014-04-24 14:56:41 -04:00
2014-05-21 11:43:35 -07:00
2014-06-20 10:23:02 +02:00
2014-07-15 09:16:32 -04:00
2014-07-15 09:16:32 -04:00
2014-07-16 14:51:43 -07:00
2014-07-15 16:10:18 -07:00
2014-07-16 14:51:43 -07:00
2014-04-08 10:58:07 -07:00
2014-06-03 12:28:58 -07:00
2014-07-14 09:06:38 -07:00
2014-07-11 15:03:30 -07:00
2014-02-28 13:19:47 -08:00
2014-01-27 14:49:10 -08:00
2014-03-14 22:44:35 +00:00
2014-04-28 23:46:24 -04:00
2014-03-14 13:02:20 -07:00
2014-06-20 10:23:02 +02:00
2014-01-30 22:10:10 -08:00
2014-04-15 13:39:26 -07:00
2014-07-10 09:31:42 -07:00