From 3081c9ab384b893e50b589b59bb33d138cbcd2df Mon Sep 17 00:00:00 2001 From: Timofey Turenko Date: Mon, 24 Feb 2025 10:56:15 +0200 Subject: [PATCH] add asserts --- dbcon/joblist/tuplehashjoin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dbcon/joblist/tuplehashjoin.cpp b/dbcon/joblist/tuplehashjoin.cpp index d935a67dc..7fead5ee7 100644 --- a/dbcon/joblist/tuplehashjoin.cpp +++ b/dbcon/joblist/tuplehashjoin.cpp @@ -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());