Andrew Kryczka
5df172da2f
fix deletion-triggered compaction in table builder
...
Summary:
It was broken when `NotifyCollectTableCollectorsOnFinish` was introduced. That function called `Finish` on each of the `TablePropertiesCollector`s, and `CompactOnDeletionCollector::Finish()` was resetting all its internal state. Then, when we checked whether compaction is necessary, the flag had already been cleared.
Fixed above issue by avoiding resetting internal state during `Finish()`. Multiple calls to `Finish()` are allowed, but callers cannot invoke `AddUserKey()` on the collector after any finishes.
Closes https://github.com/facebook/rocksdb/pull/2936
Differential Revision: D5918659
Pulled By: ajkr
fbshipit-source-id: 4f05e9d80e50ee762ba1e611d8d22620029dca6b
2017-09-28 18:17:30 -07:00
..
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-09-14 14:18:59 -07:00
2017-09-27 17:49:45 -07:00
2017-07-21 18:26:26 -07:00
2017-09-07 18:26:18 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-08-19 14:10:08 -07:00
2017-08-16 23:42:00 -07:00
2017-08-19 14:10:08 -07:00
2017-07-21 18:26:26 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-09-27 17:49:45 -07:00
2017-09-27 17:49:45 -07:00
2017-07-26 12:12:26 -07:00
2017-08-16 18:42:33 -07:00
2017-07-15 16:11:23 -07:00
2017-09-21 15:57:58 -07:00
2017-09-13 15:41:38 -07:00
2017-08-15 13:02:19 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-08-09 15:58:13 -07:00
2017-08-11 12:29:14 -07:00
2017-07-15 16:11:23 -07:00
2017-08-23 19:40:47 -07:00
2017-07-21 18:26:26 -07:00
2017-07-21 18:26:26 -07:00
2017-07-21 18:26:26 -07:00
2017-09-13 15:41:38 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-07-18 11:56:57 -07:00
2017-07-21 18:26:26 -07:00
2017-09-27 17:49:45 -07:00
2017-09-27 17:49:45 -07:00
2017-09-12 17:17:42 -07:00
2017-09-28 16:56:45 -07:00
2017-09-27 17:49:45 -07:00
2017-07-24 10:54:37 -07:00
2017-07-21 18:26:26 -07:00
2017-09-28 16:56:45 -07:00
2017-09-28 16:56:45 -07:00
2017-09-28 16:56:45 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-26 21:11:47 -07:00
2017-07-24 10:54:37 -07:00
2017-09-14 17:57:31 -07:00
2017-07-24 10:54:37 -07:00
2017-09-26 14:27:30 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-09-28 15:58:49 -07:00
2017-09-27 17:49:45 -07:00
2017-07-21 18:26:26 -07:00
2017-08-29 18:41:35 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-09-28 18:17:30 -07:00
2017-07-21 18:26:26 -07:00
2017-09-11 09:14:48 -07:00
2017-08-31 14:16:30 -07:00
2017-07-21 18:26:26 -07:00
2017-09-12 11:26:47 -07:00
2017-08-16 18:42:33 -07:00
2017-09-22 17:26:36 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-09-14 15:41:49 -07:00
2017-09-14 15:41:49 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-28 16:27:16 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-07-21 18:26:26 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-09-27 17:49:45 -07:00
2017-09-27 17:49:45 -07:00
2017-09-27 17:49:45 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-09-21 17:56:38 -07:00
2017-07-21 18:26:26 -07:00
2017-09-07 18:26:18 -07:00
2017-09-07 18:26:18 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-09-11 09:14:48 -07:00
2017-09-11 09:14:48 -07:00
2017-09-28 16:56:45 -07:00
2017-09-11 09:14:48 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-08-16 23:42:00 -07:00
2017-08-16 23:42:00 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-09-14 15:41:49 -07:00
2017-09-14 15:41:49 -07:00
2017-09-11 09:14:48 -07:00
2017-09-22 12:42:22 -07:00
2017-09-27 17:49:45 -07:00
2017-07-15 16:11:23 -07:00
2017-08-26 01:00:38 -07:00
2017-07-31 12:12:03 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-07-21 18:26:26 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-08-24 16:10:54 -07:00
2017-08-24 16:10:54 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-07-15 16:11:23 -07:00
2017-07-21 18:26:26 -07:00
2017-09-28 16:56:45 -07:00
2017-09-11 09:14:48 -07:00
2017-07-21 18:26:26 -07:00
2017-07-28 16:27:16 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-09-18 14:45:08 -07:00
2017-09-28 16:56:45 -07:00
2017-09-28 16:56:45 -07:00
2017-09-12 14:58:46 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-07-15 16:11:23 -07:00
2017-09-28 16:56:45 -07:00
2017-09-28 16:56:45 -07:00