Islam AbdelRahman 73faa3d41d Handling edge cases for ReFitLevel
Summary:
Right now the level we pass to ReFitLevel is the maximum level with files (before compaction), there are multiple cases where this maximum level have changed after compaction
- all files where in L0 (now maximum level is L1)
- using kCompactionStyleUniversal (now maximum level in the last level)
- level_compaction_dynamic_level_bytes ??

We can handle each of these cases individually, but I felt it's safer to calculate max_level_with_files again if we want to do a ReFitLevel

Test Plan:
adding some tests
make -j64 check

Reviewers: igor, sdong

Reviewed By: sdong

Subscribers: ott, dhruba

Differential Revision: https://reviews.facebook.net/D39663
2015-06-11 14:15:52 -07:00
..
2015-06-08 11:28:40 -07:00
2015-06-10 00:12:33 -07:00
2015-05-05 09:57:47 -07:00
2015-04-25 18:14:27 +09:00
2015-06-09 16:36:07 -07:00
2015-06-11 14:15:52 -07:00
2015-04-25 18:14:27 +09:00
2015-06-11 14:15:52 -07:00
2015-03-17 14:08:00 -07:00
2015-05-29 14:36:35 -07:00
2015-05-29 14:36:35 -07:00
2015-04-23 12:10:36 -07:00
2015-03-17 14:08:00 -07:00
2015-05-29 14:36:35 -07:00
2015-01-26 11:48:07 -08:00
2015-04-07 16:25:56 -07:00
2015-03-17 14:08:00 -07:00
2015-04-07 16:25:56 -07:00
2015-05-29 14:36:35 -07:00
2015-05-29 14:36:35 -07:00
2015-05-29 14:36:35 -07:00
2015-05-29 14:36:35 -07:00
2015-04-27 20:23:50 -07:00
2015-02-26 11:28:41 -08:00
2015-03-30 16:05:35 -04:00
2015-03-17 14:08:00 -07:00
2014-11-06 11:14:28 -08:00
2015-02-06 08:44:30 -08:00
2014-10-31 11:59:54 -07:00
2015-02-26 11:28:41 -08:00
2014-11-10 17:39:38 -05:00
2015-05-29 14:36:35 -07:00
2015-05-29 14:36:35 -07:00
2015-05-29 14:36:35 -07:00
2014-09-13 14:14:10 -07:00
2015-05-29 14:36:35 -07:00
2015-05-29 14:36:35 -07:00