提交 95359cf6 编写于 作者: O obdev 提交者: ob-robot

fix tablet_allocator double free

上级 c3877a65
......@@ -110,6 +110,7 @@ int ObAllVirtualTableMgr::get_next_tablet()
{
int ret = OB_SUCCESS;
tablet_handle_.reset();
tablet_allocator_.reuse();
if (nullptr == tablet_iter_) {
tablet_allocator_.set_tenant_id(MTL_ID());
......
......@@ -108,6 +108,7 @@ int ObAllVirtualTabletCompactionInfo::get_next_tablet()
{
int ret = OB_SUCCESS;
tablet_handle_.reset();
tablet_allocator_.reuse();
if (nullptr == tablet_iter_) {
tablet_allocator_.set_tenant_id(MTL_ID());
......
......@@ -502,6 +502,7 @@ int ObAllVirtualTabletSSTableMacroInfo::process_curr_tenant(common::ObNewRow *&r
int ObAllVirtualTabletSSTableMacroInfo::get_next_tablet()
{
int ret = OB_SUCCESS;
tablet_handle_.reset();
tablet_allocator_.reuse();
if (nullptr == tablet_iter_) {
tablet_allocator_.set_tenant_id(MTL_ID());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册