Skip to content

Commit fec18cb

Browse files
poyrazKgithub-actions[bot]
authored andcommitted
style: automated clang-format fixes
1 parent 5663744 commit fec18cb

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/executor/query_executor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,8 @@ QueryResult QueryExecutor::execute_delete(const parser::DeleteStatement& stmt,
534534
/* Retrieve old tuple for logging and index maintenance (unconditional) */
535535
Tuple old_tuple;
536536
if (!table.get(rid, old_tuple)) {
537-
result.set_error("Failed to retrieve tuple for deletion maintenance: " + rid.to_string());
537+
result.set_error("Failed to retrieve tuple for deletion maintenance: " +
538+
rid.to_string());
538539
return result;
539540
}
540541

src/transaction/transaction_manager.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,10 @@ bool TransactionManager::undo_transaction(Transaction* txn) {
269269
common::ValueType ktype = table_meta->columns[pos].type;
270270
storage::BTreeIndex index(idx_info.name, bpm_, ktype);
271271
if (!index.insert(old_tuple.get(pos), log.old_rid.value())) {
272-
std::cerr << "Rollback ERROR: Index insert failed for table '"
273-
<< log.table_name << "', index '" << idx_info.name
274-
<< "'\n";
272+
std::cerr
273+
<< "Rollback ERROR: Index insert failed for table '"
274+
<< log.table_name << "', index '" << idx_info.name
275+
<< "'\n";
275276
success = false;
276277
}
277278
}

0 commit comments

Comments
 (0)