sdong
5aa81f04fa
Fix extra compaction tasks scheduled after D16767 in some cases
...
Summary:
With D16767, there is a case compaction tasks are scheduled infinitely:
(1) no flush thread is configured and more than 1 compaction threads
(2) a flush is going on by one compaction hread
(3) the state of SST files is in the state that versions_->current()->NeedsCompaction() will generate a false positive (return true actually there is no work to be done)
In that case, a infinite loop will be formed.
This patch would fix it.
Test Plan: make all check
Reviewers: haobo, igor, ljin
Reviewed By: igor
CC: dhruba, yhchiang, leveldb
Differential Revision: https://reviews.facebook.net/D16863
2014-03-13 13:06:08 -07:00
..
2014-02-03 19:51:20 -08:00
2014-02-03 12:19:30 -08:00
2014-02-24 15:15:34 -08:00
2014-03-10 12:56:46 -07:00
2014-03-10 11:05:44 -07:00
2014-03-05 15:36:32 -08:00
2014-03-05 10:35:30 -08:00
2014-02-12 12:24:18 -08:00
2014-01-31 17:16:38 -08:00
2014-03-10 12:56:46 -07:00
2014-01-15 16:18:04 -08:00
2014-02-03 13:13:36 -08:00
2014-01-23 16:41:46 -08:00
2014-03-13 13:06:08 -07:00
2014-03-11 16:09:53 -07:00
2014-02-03 12:19:30 -08:00
2013-10-16 17:48:41 -07:00
2014-01-15 16:18:04 -08:00
2014-03-12 16:40:14 -07:00
2013-10-16 17:48:41 -07:00
2014-02-03 12:19:30 -08:00
2014-02-03 12:19:30 -08:00
2013-11-15 16:30:23 -08:00
2013-10-16 17:48:41 -07:00
2013-10-25 08:32:14 -07:00
2013-10-25 08:32:14 -07:00
2014-01-29 20:40:41 -08:00
2014-01-29 20:40:41 -08: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-02-28 13:19:47 -08:00
2013-10-16 17:48:41 -07:00
2013-10-16 17:48:41 -07:00
2014-02-12 11:42:54 -08:00
2014-02-12 11:42:54 -08:00
2014-03-12 16:40:14 -07:00
2014-03-12 16:40:14 -07:00
2013-12-11 11:37:28 -08:00
2014-01-17 12:46:06 -08:00
2013-11-25 10:38:15 -08:00
2013-10-16 17:48:41 -07:00
2014-01-11 09:25:47 -08:00
2013-12-06 14:15:42 -08:00
2014-03-10 12:56:46 -07:00
2014-01-24 17:16:22 -08:00
2014-03-10 12:56:46 -07:00
2014-02-28 13:19:47 -08:00
2014-02-07 19:26:49 -08: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-02-13 16:28:21 -08:00
2014-02-13 16:28:21 -08:00
2014-02-11 17:52:18 -08:00
2013-12-05 16:34:16 -08:00
2013-12-05 16:34:16 -08:00
2014-03-10 12:56:46 -07:00
2014-01-23 16:26:08 -08:00
2014-03-12 09:37:43 -07:00
2014-03-12 09:37:43 -07:00
2014-01-16 14:06:53 -08:00
2014-01-16 14:31:18 -08:00
2014-01-16 14:31:18 -08:00
2013-10-16 17:48:41 -07:00
2014-03-10 10:06:34 -07:00
2014-03-10 11:05:44 -07:00
2013-10-31 11:27:12 -07:00
2014-02-03 12:19:30 -08:00
2014-01-23 16:32:49 -08:00