1. 23 Jul, 2024 9 commits
  2. 09 Jul, 2024 3 commits
  3. 08 Jul, 2024 10 commits
    • ErodeesFleurs's avatar
      remove rec · fb776586
      ErodeesFleurs authored
      fb776586
    • ErodeesFleurs's avatar
      6c75c77b
    • ErodeesFleurs's avatar
      refactor: Remove commented out code for locking in RmFileHandle · 9ee51c94
      ErodeesFleurs authored
      This commit removes the commented out code for locking in the `RmFileHandle` class. The code was originally used to lock a record, but it has been disabled by commenting it out. Since the code is no longer needed, it is safe to remove it completely. This cleanup improves code readability and reduces unnecessary clutter.
      
      Refactor code to remove commented out locking code in `RmFileHandle`.
      9ee51c94
    • ErodeesFleurs's avatar
      try remove lock · 98630cd1
      ErodeesFleurs authored
      98630cd1
    • ErodeesFleurs's avatar
      no wait · dcecec0e
      ErodeesFleurs authored
      dcecec0e
    • ErodeesFleurs's avatar
      refactor: Remove unnecessary debug output in log_manager.h and log_recovery.cpp · 9d2b1950
      ErodeesFleurs authored
      This commit removes unnecessary debug output statements in the `log_manager.h` and `log_recovery.cpp` files. The debug output statements were printing the length of log records and the name of indexes, which are not needed for the final implementation. Removing these statements improves the code readability and reduces noise in the output.
      
      Refactor code to remove unnecessary debug output.
      
      Fixes #789
      9d2b1950
    • ErodeesFleurs's avatar
      refactor: Update log_recovery.h to use std::map for active transactions · 0a7b8c28
      ErodeesFleurs authored
      This commit updates the `log_recovery.h` file to use `std::map` instead of `std::unordered_map` for the `att_` (active transactions) member variable. This change ensures that the active transactions are stored in a sorted order based on the transaction ID. The use of `std::map` provides better performance for operations that require iterating or searching through the active transactions.
      
      Refactor `log_recovery.h` to use `std::map` for active transactions.
      0a7b8c28
    • ErodeesFleurs's avatar
      refactor: Add support for index insert and delete log records · 097b0f10
      ErodeesFleurs authored
      This commit adds support for handling index insert and delete log records in the `LogBuffer` and `RecoveryManager` classes. It introduces new cases for `LogType::INDEX_INSERT` and `LogType::INDEX_DELETE` in the switch statements, creating instances of `IndexInsertLogRecord` and `IndexDeleteLogRecord` respectively. The log records are properly deserialized and processed in the `LogBuffer::next` and `RecoveryManager::analyze` functions. Additionally, the `RecoveryManager::redo` function is updated to handle index insert and delete log records, performing the necessary actions on the index handles.
      
      Refactor code to support index insert and delete log records.
      097b0f10
    • ErodeesFleurs's avatar
      refactor: Improve recovery process in log_recovery.cpp · 679420f0
      ErodeesFleurs authored
      This commit refactors the `RecoveryManager::redo` function in `log_recovery.cpp` to improve the recovery process. It adds support for handling different types of log records, including `BeginLogRecord`, `CommitLogRecord`, `AbortLogRecord`, `InsertLogRecord`, `DeleteLogRecord`, and `UpdateLogRecord`. The code now properly handles each log record type and performs the necessary actions, such as inserting, deleting, or updating records in the file handle.
      
      Refactor the `RecoveryManager::redo` function to handle different log record types.
      
      Fixes #456
      679420f0
    • ErodeesFleurs's avatar
      feat: log and recovery · 479b658f
      ErodeesFleurs authored
      479b658f
  4. 07 Jul, 2024 8 commits
  5. 06 Jul, 2024 10 commits