Skip to content

Commit

Permalink
Remove useless member of CreatingSetsBlockInputStream (#4535)
Browse files Browse the repository at this point in the history
close #4536
  • Loading branch information
fuzhe1989 authored Mar 31, 2022
1 parent 7de2666 commit 5727db7
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions dbms/src/DataStreams/CreatingSetsBlockInputStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,7 @@ class CreatingSetsBlockInputStream : public IProfilingBlockInputStream
const SizeLimits & network_transfer_limits,
const String & req_id);

~CreatingSetsBlockInputStream()
{
for (auto & worker : workers)
{
if (worker.joinable())
worker.join();
}
}
~CreatingSetsBlockInputStream() = default;

static constexpr auto name = "CreatingSets";

Expand Down Expand Up @@ -101,7 +94,6 @@ class CreatingSetsBlockInputStream : public IProfilingBlockInputStream
size_t rows_to_transfer = 0;
size_t bytes_to_transfer = 0;

std::vector<std::thread> workers;
std::mutex exception_mutex;
std::vector<std::exception_ptr> exception_from_workers;

Expand Down

0 comments on commit 5727db7

Please sign in to comment.