|
MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
|
处理事务日志的辅助类 更多...
#include <mvcc_trx_log.h>
Public 成员函数 | |
| MvccTrxLogHandler (LogHandler &log_handler) | |
| RC | insert_record (int32_t trx_id, Table *table, const RID &rid) |
| 记录插入一条记录的日志 | |
| RC | delete_record (int32_t trx_id, Table *table, const RID &rid) |
| 记录删除一条记录的日志 | |
| RC | commit (int32_t trx_id, int32_t commit_trx_id) |
| 记录提交事务的日志 更多... | |
| RC | rollback (int32_t trx_id) |
| 记录回滚事务的日志 更多... | |
Private 属性 | |
| LogHandler & | log_handler_ |
处理事务日志的辅助类
| RC MvccTrxLogHandler::commit | ( | int32_t | trx_id, |
| int32_t | commit_trx_id | ||
| ) |
记录提交事务的日志
会等待日志落地
| RC MvccTrxLogHandler::rollback | ( | int32_t | trx_id | ) |
记录回滚事务的日志
不会等待日志落地