You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
add asserts
This commit is contained in:
@@ -248,6 +248,7 @@ void TupleHashJoinStep::trackMem(uint index)
|
|||||||
if (!joinIsTooBig &&
|
if (!joinIsTooBig &&
|
||||||
(isDML || !allowDJS || (fSessionId & 0x80000000) || (tableOid() < 3000 && tableOid() >= 1000)))
|
(isDML || !allowDJS || (fSessionId & 0x80000000) || (tableOid() < 3000 && tableOid() >= 1000)))
|
||||||
{
|
{
|
||||||
|
assert(0);
|
||||||
joinIsTooBig = true;
|
joinIsTooBig = true;
|
||||||
ostringstream oss;
|
ostringstream oss;
|
||||||
oss << "(" << __LINE__ << ") "
|
oss << "(" << __LINE__ << ") "
|
||||||
@@ -450,6 +451,7 @@ void TupleHashJoinStep::smallRunnerFcn(uint32_t index, uint threadID, uint64_t*
|
|||||||
return;
|
return;
|
||||||
if (!allowDJS || isDML || (fSessionId & 0x80000000) || (tableOid() < 3000 && tableOid() >= 1000))
|
if (!allowDJS || isDML || (fSessionId & 0x80000000) || (tableOid() < 3000 && tableOid() >= 1000))
|
||||||
{
|
{
|
||||||
|
assert(0);
|
||||||
joinIsTooBig = true;
|
joinIsTooBig = true;
|
||||||
ostringstream oss;
|
ostringstream oss;
|
||||||
oss << "(" << __LINE__ << ") "
|
oss << "(" << __LINE__ << ") "
|
||||||
@@ -864,6 +866,7 @@ void TupleHashJoinStep::hjRunner()
|
|||||||
if (joinIsTooBig && !status())
|
if (joinIsTooBig && !status())
|
||||||
{
|
{
|
||||||
ostringstream oss;
|
ostringstream oss;
|
||||||
|
assert(0);
|
||||||
oss << "(" << __LINE__ << ") "
|
oss << "(" << __LINE__ << ") "
|
||||||
<< logging::IDBErrorInfo::instance()->errorMsg(logging::ERR_JOIN_TOO_BIG);
|
<< logging::IDBErrorInfo::instance()->errorMsg(logging::ERR_JOIN_TOO_BIG);
|
||||||
fLogger->logMessage(logging::LOG_TYPE_INFO, oss.str());
|
fLogger->logMessage(logging::LOG_TYPE_INFO, oss.str());
|
||||||
|
Reference in New Issue
Block a user