From cb3b6208bb8eb08efb683e53009fd7595dc30cd4 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Fri, 22 Jun 2012 17:13:03 +0000 Subject: [PATCH] dbms: development [#CONV-5097]. --- dbms/src/Storages/StorageLog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dbms/src/Storages/StorageLog.cpp b/dbms/src/Storages/StorageLog.cpp index 8924f4e28b9..7c5c12a3227 100644 --- a/dbms/src/Storages/StorageLog.cpp +++ b/dbms/src/Storages/StorageLog.cpp @@ -31,6 +31,9 @@ Block LogBlockInputStream::readImpl() { Block res; + if (rows_read == rows_limit) + return res; + /// Если файлы не открыты, то открываем их. if (streams.empty()) for (Names::const_iterator it = column_names.begin(); it != column_names.end(); ++it)