未验证 提交 5122a711 编写于 作者: 羽飞's avatar 羽飞 提交者: GitHub

fix bug: convert return-code in next_entry

convert the return-code from RECORD_NO_MORE_IDX_IN_MEM got from get_next_idx_in_memory to RECORD_EOF
上级 e976988d
......@@ -2203,7 +2203,11 @@ RC BplusTreeScanner::next_entry(RID *rid)
if (rc != RC::SUCCESS) {
return rc;
}
return get_next_idx_in_memory(rid);
rc = get_next_idx_in_memory(rid);
if (rc == RC::RECORD_NO_MORE_IDX_IN_MEM) {
rc = RC::RECORD_EOF;
}
return rc;
} else {
if (rc != RC::SUCCESS) {
return rc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册