Igor Canadi
eb5b637fb0
Fix condition for bottommost level
...
Summary:
The function GetBoundaryKeys() returns the smallest key from the first file and largest key from the last file. This is good for any level >0, but it's not correct for level 0. In level 0, files can overlap, so we need to check all files for boundary keys. This bug can cause wrong value for bottommost_level in compaction (value of true, although correct is false), which means we can set sequence numbers to 0 even if the key is not the oldest one in the database.
Herman reported corruption while testing MyRocks. Fortunately, the patch that added the bug was not released yet.
Test Plan: added a new test to compaction_picker_test.
Reviewers: hermanlee4, sdong
Reviewed By: sdong
Subscribers: dhruba, leveldb
Differential Revision: https://reviews.facebook.net/D48201
2015-10-05 17:40:18 -07:00
..
2015-09-25 13:34:49 -07:00
2015-08-24 11:11:12 -07:00
2015-07-17 18:59:11 +02:00
2015-07-17 12:02:52 -07:00
2015-09-21 16:21:01 -07:00
2015-09-14 12:51:16 -07:00
2015-08-20 11:47:19 -07:00
2015-07-20 17:20:40 -07:00
2015-07-14 11:32:54 -07:00
2015-07-14 11:32:54 -07:00
2015-09-17 11:42:56 -07:00
2015-09-17 11:42:56 -07:00
2015-09-17 11:42:56 -07:00
2015-09-28 13:55:53 -07:00
2015-09-17 11:42:56 -07:00
2015-09-15 17:11:44 -07:00
2015-09-10 14:35:25 -07:00
2015-10-05 17:40:18 -07:00
2015-09-21 17:21:59 -07:00
2015-09-14 11:03:37 -07:00
2015-10-05 17:40:18 -07:00
2015-09-16 17:47:50 -07:00
2015-09-02 13:58:22 -07:00
2015-07-15 14:51:51 -07:00
2015-10-05 14:46:28 -07:00
2015-07-20 10:50:46 -07:00
2015-09-30 09:51:31 -07:00
2015-09-11 12:07:54 -07:00
2015-09-25 10:29:44 -07:00
2015-07-13 19:00:30 -07:00
2015-06-19 16:08:31 -07:00
2015-08-14 10:55:43 -07:00
2015-06-17 12:37:59 -07:00
2015-07-14 11:32:54 -07:00
2015-09-25 21:25:30 -07:00
2015-10-02 13:17:34 -07:00
2015-10-02 13:17:34 -07:00
2015-07-20 16:05:28 -07:00
2015-09-17 11:42:56 -07:00
2015-09-17 11:42:56 -07:00
2014-09-08 15:04:34 -07:00
2015-07-14 16:08:21 -07:00
2015-09-04 14:28:45 -07:00
2015-10-05 10:10:11 -07:00
2015-08-31 09:39:27 -07:00
2015-08-05 14:27:02 -07:00
2015-07-14 00:21:41 -07:00
2015-09-17 11:42:56 -07:00
2015-09-18 20:15:20 +02:00
2015-07-20 17:20:40 -07:00
2015-06-03 19:57:01 -07:00
2015-06-03 19:57:01 -07:00
2015-04-23 12:10:36 -07:00
2015-09-25 10:29:44 -07:00
2015-04-29 10:52:31 -07:00
2015-04-29 10:52:31 -07:00
2015-07-11 10:32:11 -07:00
2015-03-17 14:08:00 -07:00
2015-09-23 12:39:16 -07:00
2015-09-23 12:22:44 -07:00
2015-09-02 13:58:22 -07:00
2015-09-25 13:34:49 -07:00
2015-08-24 11:11:12 -07:00
2014-10-02 14:33:16 -07:00
2015-01-26 11:48:07 -08:00
2015-09-08 17:15:11 -07:00
2015-09-04 14:28:45 -07:00
2015-09-17 11:42:56 -07:00
2015-09-14 12:51:16 -07:00
2015-07-07 12:10:10 -07:00
2015-08-31 23:11:12 -07:00
2014-01-02 16:32:31 -08:00
2015-07-17 16:58:18 -07:00
2015-07-17 16:58:18 -07:00
2015-08-05 07:33:27 -07:00
2015-07-17 16:58:18 -07:00
2015-09-02 13:58:22 -07:00
2015-07-01 16:13:56 -07:00
2015-04-09 21:05:18 -07:00
2014-12-02 12:09:20 -08:00
2014-12-02 12:09:20 -08:00
2015-08-05 07:33:27 -07:00
2015-08-24 17:04:18 -07:00
2015-08-19 13:32:09 -07:00
2015-09-17 11:42:56 -07:00
2015-06-16 18:13:23 -07:00
2015-09-08 15:30:49 -07:00
2015-05-11 14:51:51 -07:00
2015-09-17 11:42:56 -07:00
2015-09-17 11:42:56 -07:00
2015-09-17 11:42:56 -07:00
2015-06-26 11:35:46 -07:00
2015-07-20 11:17:52 -07:00
2015-03-30 16:05:35 -04:00
2015-09-23 11:41:07 -07:00
2015-09-15 18:10:36 -07:00
2015-08-24 11:11:12 -07:00
2015-03-17 14:08:00 -07:00
2015-08-11 11:25:22 -07:00
2015-03-17 19:23:08 -07:00
2015-08-06 17:59:05 -07:00
2015-08-06 17:59:05 -07:00
2015-09-11 11:36:33 -07:00
2015-08-26 15:25:59 -07:00
2015-09-17 11:42:56 -07:00
2015-09-17 11:42:56 -07:00
2015-09-23 12:42:43 -07:00
2015-07-17 16:58:18 -07:00
2015-07-17 16:58:18 -07:00
2015-09-21 17:21:59 -07:00
2015-09-02 12:57:07 -07:00
2015-09-02 12:57:07 -07:00
2015-06-05 20:18:21 -07:00
2015-07-17 10:07:40 -07:00
2015-09-10 14:35:25 -07:00
2015-07-21 21:33:20 -07:00
2015-09-21 17:21:59 -07:00
2015-09-21 17:21:59 -07:00
2015-07-20 11:24:54 -07:00
2015-07-20 17:20:40 -07:00
2014-11-10 17:39:38 -05:00
2015-09-17 11:42:56 -07:00
2015-09-17 11:42:56 -07:00
2015-09-17 11:42:56 -07:00
2015-09-17 11:42:56 -07:00
2015-07-20 10:54:15 -07:00
2015-05-29 14:36:35 -07:00
2015-06-11 20:42:18 -07:00
2015-06-11 20:42:18 -07:00
2015-06-11 20:42:18 -07:00
2015-08-14 10:55:43 -07:00
2015-08-14 10:55:43 -07:00
2014-12-02 12:09:20 -08:00