Use tenant-level object pool instead of sop_borrow

This commit is contained in:
obdev
2023-05-26 10:41:16 +00:00
committed by ob-robot
parent 982112f7bc
commit c9cccf08db
21 changed files with 102 additions and 80 deletions

View File

@ -45,7 +45,7 @@ void ObLobTextIterCtx::reuse()
iter_count_ = 0;
if (OB_NOT_NULL(lob_query_iter_)) {
lob_query_iter_->reset();
sop_return(ObLobQueryIter, lob_query_iter_);
OB_DELETE(ObLobQueryIter, "unused", lob_query_iter_);
lob_query_iter_ = NULL;
}
}
@ -57,7 +57,7 @@ ObTextStringIter::~ObTextStringIter()
if (is_outrow_ && OB_NOT_NULL(ctx_)) {
if (OB_NOT_NULL(ctx_->lob_query_iter_)) {
ctx_->lob_query_iter_->reset();
common::sop_return(ObLobQueryIter, ctx_->lob_query_iter_);
OB_DELETE(ObLobQueryIter, "unused", ctx_->lob_query_iter_);
ctx_->lob_query_iter_ = NULL;
}
}
@ -530,7 +530,7 @@ int ObTextStringIter::get_next_block_inner(ObString &str)
if (ret == OB_ITER_END) {
state_ = TEXTSTRING_ITER_END; // iter finished
ctx_->lob_query_iter_->reset();
common::sop_return(ObLobQueryIter, ctx_->lob_query_iter_);
OB_DELETE(ObLobQueryIter, "unused", ctx_->lob_query_iter_);
ctx_->lob_query_iter_ = NULL;
ret = OB_SUCCESS;
} else {