Skip to content

Commit

Permalink
Add comments for using catalog_ to get db_oid in lab2
Browse files Browse the repository at this point in the history
Signed-off-by: Wenbo Li <lwb21@mails.tsinghua.edu.cn>
  • Loading branch information
hnjylwb committed Apr 1, 2024
1 parent 3e15341 commit 6777a9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/log/log_records/delete_log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ std::shared_ptr<DeleteLog> DeleteLog::DeserializeFrom(lsn_t lsn, const char *dat

void DeleteLog::Undo(BufferPool &buffer_pool, Catalog &catalog, LogManager &log_manager, lsn_t undo_next_lsn) {
// 恢复删除的记录
// 通过 catalog_ 获取 db_oid
// LAB 2 BEGIN
}

Expand Down
1 change: 1 addition & 0 deletions src/log/log_records/insert_log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ std::shared_ptr<InsertLog> InsertLog::DeserializeFrom(lsn_t lsn, const char *dat

void InsertLog::Undo(BufferPool &buffer_pool, Catalog &catalog, LogManager &log_manager, lsn_t undo_next_lsn) {
// 将插入的记录删除
// 通过 catalog_ 获取 db_oid
// LAB 2 BEGIN
}

Expand Down

0 comments on commit 6777a9d

Please sign in to comment.