1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-07 03:22:57 +03:00

add asserts

This commit is contained in:
Timofey Turenko
2025-02-24 10:56:15 +02:00
parent cbf4fef47c
commit 3081c9ab38

View File

@@ -248,6 +248,7 @@ void TupleHashJoinStep::trackMem(uint index)
if (!joinIsTooBig &&
(isDML || !allowDJS || (fSessionId & 0x80000000) || (tableOid() < 3000 && tableOid() >= 1000)))
{
assert(0);
joinIsTooBig = true;
ostringstream oss;
oss << "(" << __LINE__ << ") "
@@ -450,6 +451,7 @@ void TupleHashJoinStep::smallRunnerFcn(uint32_t index, uint threadID, uint64_t*
return;
if (!allowDJS || isDML || (fSessionId & 0x80000000) || (tableOid() < 3000 && tableOid() >= 1000))
{
assert(0);
joinIsTooBig = true;
ostringstream oss;
oss << "(" << __LINE__ << ") "
@@ -864,6 +866,7 @@ void TupleHashJoinStep::hjRunner()
if (joinIsTooBig && !status())
{
ostringstream oss;
assert(0);
oss << "(" << __LINE__ << ") "
<< logging::IDBErrorInfo::instance()->errorMsg(logging::ERR_JOIN_TOO_BIG);
fLogger->logMessage(logging::LOG_TYPE_INFO, oss.str());