Skip to content

Commit

Permalink
Renamed method #217 [#CLICKHOUSE-1942]
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-milovidov committed Apr 2, 2018
1 parent c1d36b5 commit b3e6bb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dbms/src/DataStreams/IProfilingBlockInputStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Block IProfilingBlockInputStream::read()
if (isCancelledOrThrowIfKilled())
return res;

if (!checkTimeLimits())
if (!checkTimeLimit())
limit_exceeded_need_break = true;

if (!limit_exceeded_need_break)
Expand Down Expand Up @@ -191,7 +191,7 @@ static bool handleOverflowMode(OverflowMode mode, const String & message, int co
};


bool IProfilingBlockInputStream::checkTimeLimits()
bool IProfilingBlockInputStream::checkTimeLimit()
{
if (limits.max_execution_time != 0
&& info.total_stopwatch.elapsed() > static_cast<UInt64>(limits.max_execution_time.totalMicroseconds()) * 1000)
Expand Down
6 changes: 3 additions & 3 deletions dbms/src/DataStreams/IProfilingBlockInputStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,10 @@ class IProfilingBlockInputStream : public IBlockInputStream

void updateExtremes(Block & block);

/** Check constraints and quotas.
* But only those that can be tested within each separate source.
/** Check limits and quotas.
* But only those that can be checked within each separate stream.
*/
bool checkTimeLimits();
bool checkTimeLimit();
void checkQuota(Block & block);


Expand Down

0 comments on commit b3e6bb4

Please sign in to comment.