Akanksha Mahajan
54f171fe90
Update Flush policy in PartitionedIndexBuilder on switching from user-key to internal-key mode ( #7096 )
...
Summary:
When format_version is high enough to support user-key and
there are index entries for same user key that spans multiple data
blocks then it changes from user-key mode to internal-key mode. But the
flush policy is not reset to point to Block Builder of internal-keys.
After this switch, no entries are added to user key index partition
result, thus it never triggers flushing the block.
Fix: 1. After adding the entry in sub_builder_index_, if there is a switch
from user-key to internal-key, then flush policy is updated to point to
Block Builder of internal-keys index partition.
2. Set sub_builder_index_->seperator_is_key_plus_seq_ = true if
seperator_is_key_plus_seq_ is set to true so that subsequent partitions
can also use internal key mode.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/7096
Test Plan: make check -j64
Reviewed By: ajkr
Differential Revision: D22416598
Pulled By: akankshamahajan15
fbshipit-source-id: 01fc2dc07ea1b32f8fb803995ebe6e9a3fbe67ac
2020-07-08 21:03:04 -07:00
..
2020-07-06 17:18:14 -07:00
2020-07-02 19:25:41 -07:00
2020-07-02 19:25:41 -07:00
2020-06-18 10:16:38 -07:00
2020-03-06 16:24:27 -08:00
2020-06-17 10:57:40 -07:00
2020-06-17 10:57:40 -07:00
2020-06-29 12:21:53 -07:00
2020-07-08 11:56:41 -07:00
2020-07-02 19:25:41 -07:00
2020-07-08 11:54:00 -07:00
2020-03-20 19:30:48 -07:00
2020-07-02 19:25:41 -07:00
2020-07-02 19:25:41 -07:00
2020-02-20 12:09:57 -08:00
2020-06-03 15:55:03 -07:00
2020-05-12 18:23:33 -07:00
2020-07-02 19:25:41 -07:00
2020-07-02 19:25:41 -07:00
2020-07-02 19:25:41 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 10:22:43 -07:00
2020-06-24 19:07:08 -07:00
2020-07-02 19:25:41 -07:00
2020-06-15 10:47:02 -07:00
2020-06-15 10:47:02 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 10:22:43 -07:00
2020-06-24 16:22:49 -07:00
2020-02-20 12:09:57 -08:00
2020-05-28 10:40:03 -07:00
2020-04-10 09:51:58 -07:00
2020-07-02 19:25:41 -07:00
2020-07-02 10:22:43 -07:00
2020-03-20 15:26:10 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 19:25:41 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 10:22:43 -07:00
2020-07-08 21:03:04 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 19:25:41 -07:00
2020-07-02 19:25:41 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 10:22:43 -07:00
2020-02-20 12:09:57 -08:00
2020-07-07 17:26:16 -07:00
2020-07-07 17:26:16 -07:00
2020-07-02 10:22:43 -07:00
2020-07-02 10:22:43 -07:00
2020-06-24 19:07:08 -07:00
2020-03-27 16:04:43 -07:00
2020-06-17 10:57:40 -07:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-07-02 10:22:43 -07:00
2020-06-11 14:27:36 -07:00
2020-06-11 14:27:36 -07:00
2020-07-02 10:22:43 -07:00
2020-06-03 15:55:03 -07:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-06-17 10:57:40 -07:00
2020-06-17 10:57:40 -07:00
2020-06-17 10:57:40 -07:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-06-09 16:51:23 -07:00
2020-04-15 17:40:44 -07:00
2020-04-30 08:40:42 -07:00
2020-02-20 12:09:57 -08:00
2020-07-02 10:22:43 -07:00
2020-06-24 19:07:08 -07:00
2020-02-20 12:09:57 -08:00
2020-05-04 15:08:13 -07:00
2020-07-07 18:21:18 -07:00
2020-02-20 12:09:57 -08:00
2020-06-11 18:42:10 -07:00
2020-04-20 11:39:31 -07:00
2020-06-03 15:55:03 -07:00
2020-06-18 10:09:12 -07:00
2020-03-27 16:04:43 -07:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-03-04 20:15:25 -08:00
2020-03-27 16:04:43 -07:00
2020-06-27 08:57:31 -07:00
2020-06-04 15:46:27 -07:00
2020-06-26 11:14:08 -07:00
2020-03-02 16:01:00 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-07-02 10:22:43 -07:00
2020-02-20 12:09:57 -08:00
2020-04-20 13:24:25 -07:00
2020-02-20 12:09:57 -08:00
2020-07-02 19:25:41 -07:00
2020-02-20 12:09:57 -08:00
2020-07-02 19:25:41 -07:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-07-02 10:22:43 -07:00
2020-06-17 10:57:40 -07:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-06-29 14:53:17 -07:00
2020-06-29 14:53:17 -07:00
2020-06-03 15:55:03 -07:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-06-30 15:31:21 -07:00
2020-06-30 15:31:21 -07:00
2020-06-09 16:51:23 -07:00
2020-06-18 10:09:12 -07:00
2020-06-18 10:09:12 -07:00
2020-03-23 10:27:47 -07:00
2020-06-07 21:56:55 -07:00
2020-06-07 21:56:55 -07:00
2020-06-30 15:31:21 -07:00
2020-07-06 16:17:02 -07:00
2020-06-30 15:31:21 -07:00
2020-02-20 12:09:57 -08:00
2020-04-29 13:09:23 -07:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-07-02 19:25:41 -07:00
2020-06-30 12:31:30 -07:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-20 12:09:57 -08:00
2020-02-28 14:14:03 -08:00
2020-02-20 12:09:57 -08:00