From fc4ea55b98ebd1f4c9a2d6fb0f1fed5a00deade6 Mon Sep 17 00:00:00 2001 From: Vitaliy Zakaznikov Date: Mon, 10 Jun 2019 08:11:43 -0400 Subject: [PATCH] * Fixing bug in dbms/src/DataStreams/PushingToViewsBlockOutputStream.cpp that was introduced when trying to fix a clang error. --- dbms/src/DataStreams/PushingToViewsBlockOutputStream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbms/src/DataStreams/PushingToViewsBlockOutputStream.cpp b/dbms/src/DataStreams/PushingToViewsBlockOutputStream.cpp index c023670d4e1..f361420de95 100644 --- a/dbms/src/DataStreams/PushingToViewsBlockOutputStream.cpp +++ b/dbms/src/DataStreams/PushingToViewsBlockOutputStream.cpp @@ -86,8 +86,8 @@ void PushingToViewsBlockOutputStream::write(const Block & block) if (auto * live_view = dynamic_cast(storage.get())) { - output = std::make_shared(*live_view); - StorageLiveView::writeIntoLiveView(*live_view, block, context, output); + BlockOutputStreamPtr output_ = std::make_shared(*live_view); + StorageLiveView::writeIntoLiveView(*live_view, block, context, output_); } else {