Yueh-Hsuan Chiang 1d1a64f58a Move NeedsCompaction() from VersionStorageInfo to CompactionPicker
Summary:
Move NeedsCompaction() from VersionStorageInfo to CompactionPicker
to allow different compaction strategy to have their own way to
determine whether doing compaction is necessary.

When compaction style is set to kCompactionStyleNone, then
NeedsCompaction() will always return false.

Test Plan:
export ROCKSDB_TESTS=Compact
./db_test

Reviewers: ljin, sdong, igor

Reviewed By: igor

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D28719
2014-11-13 13:41:43 -08:00
..
2014-10-31 11:59:54 -07:00
2014-09-04 16:18:36 -07:00
2014-11-06 11:14:28 -08:00
2014-11-07 11:50:34 -08:00
2014-11-07 11:50:34 -08:00
2014-01-27 14:49:10 -08:00
2014-11-07 11:50:34 -08:00
2014-11-07 11:50:34 -08:00
2014-10-27 12:10:13 -07:00
2014-11-06 11:14:28 -08:00
2014-11-07 15:04:30 -08:00
2014-10-27 15:03:45 -07:00
2014-09-04 23:06:23 +08:00
2014-11-06 11:14:28 -08:00
2014-11-06 11:14:28 -08:00
2014-10-31 11:59:54 -07:00
2014-10-29 17:43:37 -07:00
2014-11-10 17:39:38 -05:00
2014-09-13 14:14:10 -07:00
2014-09-12 16:23:58 -07:00
2014-09-12 16:23:58 -07:00