Fix core dump in MOT stress test

This commit is contained in:
Vinoth Veeraraghavan
2020-10-10 17:14:35 +08:00
parent 653f29c6e5
commit 21cce7f418

View File

@ -1111,6 +1111,13 @@ RC TxnManager::TruncateTable(Table* table)
}
}
// clean all GC elements for the table, this call should actually release
// all elements into an appropriate object pool
for (uint16_t i = 0; i < table->GetNumIndexes(); i++) {
MOT::Index* index = table->GetIndex(i);
GcManager::ClearIndexElements(index->GetIndexId(), false);
}
TxnDDLAccess::DDLAccess* ddl_access = m_txnDdlAccess->GetByOid(table->GetTableExId());
if (ddl_access == nullptr) {
MOTIndexArr* indexesArr = nullptr;