!296 Fix core dump in MOT stress test
Merge pull request !296 from Vinoth Veeraraghavan/master
This commit is contained in:
@ -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());
|
TxnDDLAccess::DDLAccess* ddl_access = m_txnDdlAccess->GetByOid(table->GetTableExId());
|
||||||
if (ddl_access == nullptr) {
|
if (ddl_access == nullptr) {
|
||||||
MOTIndexArr* indexesArr = nullptr;
|
MOTIndexArr* indexesArr = nullptr;
|
||||||
|
Reference in New Issue
Block a user