Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::RollbackState Class Reference
Collaboration diagram for duckdb::RollbackState:

Public Member Functions

 RollbackState (DuckTransaction &transaction)
void RollbackEntry (UndoFlags type, data_ptr_t data)

Private Attributes

DuckTransaction & transaction

Constructor & Destructor Documentation

◆ RollbackState()

duckdb::RollbackState::RollbackState ( DuckTransaction & transaction)
explicit
447371 : transaction(transaction_p) {
447372}

Member Function Documentation

◆ RollbackEntry()

void duckdb::RollbackState::RollbackEntry ( UndoFlags type,
data_ptr_t data )
447374 {
447375 switch (type) {
447376 case UndoFlags::CATALOG_ENTRY: {
447377 // Load and undo the catalog entry.
447378 auto catalog_entry = Load<CatalogEntry *>(data);
447379 D_ASSERT(catalog_entry->set);
447380 catalog_entry->set->Undo(*catalog_entry);
447381 break;
447382 }
447383 case UndoFlags::INSERT_TUPLE: {
447384 auto info = reinterpret_cast<AppendInfo *>(data);
447385 // revert the append in the base table
447386 info->table->RevertAppend(transaction, info->start_row, info->count);
447387 break;
447388 }
447389 case UndoFlags::DELETE_TUPLE: {
447390 auto info = reinterpret_cast<DeleteInfo *>(data);
447391 // reset the deleted flag on rollback
447392 info->version_info->CommitDelete(info->vector_idx, NOT_DELETED_ID, *info);
447393 break;
447394 }
447395 case UndoFlags::UPDATE_TUPLE: {
447396 auto info = reinterpret_cast<UpdateInfo *>(data);
447397 info->segment->RollbackUpdate(*info);
447398 break;
447399 }
447400 case UndoFlags::ATTACHED_DATABASE: {
447401 auto db = Load<AttachedDatabase *>(data);
447402 auto &db_manager = DatabaseManager::Get(db->GetDatabase());
447403 db_manager.DetachInternal(db->name);
447404 break;
447405 }
447406 case UndoFlags::SEQUENCE_VALUE:
447407 break;
447408 default: // LCOV_EXCL_START
447409 D_ASSERT(type == UndoFlags::EMPTY_ENTRY);
447410 break;
447411 } // LCOV_EXCL_STOP
447412}
db

The documentation for this class was generated from the following file: