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-07-02 21:14:44 -07:00
2014-06-26 16:45:27 -07:00
2014-07-16 18:12:17 -07:00
2014-07-17 18:01:04 -07:00
2014-07-17 14:36:41 -07:00
2014-07-17 16:37:25 -07:00
2014-04-24 14:56:41 -04:00
2014-07-16 17:32:30 -07:00
2014-07-02 21:14:44 -07: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-17 14:36:41 -07: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-06-02 17:44:57 -07:00
2014-07-16 14:51:43 -07:00
2013-10-16 17:48:41 -07:00
2014-04-08 10:58:07 -07:00
2014-07-01 17:14:15 -07:00
2013-11-15 16:30:23 -08:00
2014-07-16 11:21:30 -07:00
2014-07-16 11:21:30 -07:00
2014-07-16 11:21:30 -07:00
2014-07-15 12:06:28 -07:00
2014-07-15 12:06:28 -07:00
2014-07-15 12:06:28 -07:00
2014-07-10 16:46:13 -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-07-02 21:14:44 -07:00
2014-01-02 16:32:31 -08: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
2013-10-16 17:48:41 -07:00
2013-10-16 17:48:41 -07:00
2014-07-02 21:14:44 -07:00
2014-07-02 21:14:44 -07:00
2014-06-30 15:54:31 -07:00
2014-06-02 17:44:57 -07:00
2014-03-24 17:57:13 -07:00
2014-03-27 16:15:25 -07:00
2014-03-24 20:47:53 -07:00
2014-03-26 18:11:41 -07:00
2014-04-28 23:46:24 -04:00
2014-03-14 13:02:20 -07:00
2014-07-10 11:32:04 -07:00
2014-07-01 17:14:15 -07:00
2014-07-15 12:06:28 -07:00
2014-06-20 10:23:02 +02:00
2014-01-30 22:10:10 -08:00
2014-03-10 12:56:46 -07:00
2013-10-16 17:48:41 -07:00
2014-07-02 21:14:44 -07:00
2014-07-15 12:06:28 -07:00
2014-05-13 12:30:55 -07:00
2013-12-05 16:34:16 -08:00
2014-05-13 12:30:55 -07:00
2014-04-25 12:21:34 -07:00
2014-04-25 12:21:34 -07:00
2014-05-12 17:50:21 -07:00
2014-04-15 13:39:26 -07:00
2014-07-02 21:14:44 -07:00
2014-07-02 21:14:44 -07:00
2014-07-11 12:52:41 -07:00
2014-07-11 12:52:41 -07:00
2014-07-17 18:01:04 -07:00
2014-07-16 11:21:30 -07:00
2014-07-10 09:31:42 -07:00
2014-04-25 12:21:34 -07:00
2014-07-10 09:31:42 -07:00