跳至主要内容

P4 - Concurrency Control

Problem Description

在這個 project 中,我們需要實現 transaction 跟 MVCC,總共有 4 個 Task 跟 2 個 Bonus :

  • Timestamps
  • Storage Format and Sequential Scan
  • MVCC Executors
  • Primary Key Index
  • Abort
  • Serializable Verification

Solution

Submit

make txn_timestamp_test -j$(nproc)
./test/txn_timestamp_test

make txn_scan_test -j$(nproc)
./test/txn_scan_test

make txn_executor_test -j$(nproc)
./test/txn_executor_test

make txn_index_test -j$(nproc)
./test/txn_index_test

make txn_index_concurrent_test -j$(nproc)
./test/txn_index_concurrent_test

make txn_abort_serializable_test -j$(nproc)
./test/txn_abort_serializable_test
make format
make check-format
make check-lint
make check-clang-tidy-p4
make submit-p4

Reference