Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#8541
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <[email protected]>
  • Loading branch information
gengliqi authored and ti-chi-bot committed Dec 18, 2023
1 parent 4c26c00 commit 97f77d8
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions dbms/src/Storages/DeltaMerge/ReadThread/UnorderedInputStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,18 @@ class UnorderedInputStream : public IProfilingBlockInputStream
LOG_DEBUG(log, "Created, pool_id={} ref_no={}", task_pool->poolId(), ref_no);
}

void cancel(bool /*kill*/) override { decreaseRefCount(true); }

~UnorderedInputStream() override { decreaseRefCount(false); }
~UnorderedInputStream() override
{
task_pool->decreaseUnorderedInputStreamRefCount();
LOG_DEBUG(log, "Destroy, pool_id={} ref_no={}", task_pool->pool_id, ref_no);
}

String getName() const override { return NAME; }

Block getHeader() const override { return header; }

protected:
<<<<<<< HEAD
void decreaseRefCount(bool is_cancel)
{
bool ori = false;
Expand All @@ -74,6 +77,8 @@ class UnorderedInputStream : public IProfilingBlockInputStream
}
}

=======
>>>>>>> 72db40557a (Revert "Refine cancel for read thread stream (#8511)" (#8541))
Block readImpl() override
{
FilterPtr filter_ignored;
Expand Down Expand Up @@ -147,8 +152,15 @@ class UnorderedInputStream : public IProfilingBlockInputStream
LoggerPtr log;
int64_t ref_no;
size_t total_rows = 0;
<<<<<<< HEAD
bool task_pool_added;

std::atomic_bool is_stopped = false;
=======

// runtime filter
std::vector<RuntimeFilterPtr> runtime_filter_list;
int max_wait_time_ms;
>>>>>>> 72db40557a (Revert "Refine cancel for read thread stream (#8511)" (#8541))
};
} // namespace DB::DM

0 comments on commit 97f77d8

Please sign in to comment.