提交 cb9459f8 编写于 作者: D Dmitri Smirnov

Fix empty vector write in ForwardIterator

上级 a163cc2d
...@@ -575,8 +575,8 @@ void ForwardIterator::BuildLevelIterators(const VersionStorageInfo* vstorage) { ...@@ -575,8 +575,8 @@ void ForwardIterator::BuildLevelIterators(const VersionStorageInfo* vstorage) {
(user_comparator_->Compare(*read_options_.iterate_upper_bound, (user_comparator_->Compare(*read_options_.iterate_upper_bound,
level_files[0]->smallest.user_key()) < level_files[0]->smallest.user_key()) <
0))) { 0))) {
level_iters_[level - 1] = nullptr;
if (!level_files.empty()) { if (!level_files.empty()) {
level_iters_[level - 1] = nullptr;
has_iter_trimmed_for_upper_bound_ = true; has_iter_trimmed_for_upper_bound_ = true;
} }
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册