Skip to content

Commit

Permalink
Refactor code to address clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
umegane committed Feb 22, 2025
1 parent f5516d5 commit c9c5dd7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/limestone/blob_file_gc_state_machine.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ class blob_file_gc_state_machine {
external // Accept scan results from external source
};

/**
* @brief Constructor initializing the state to `not_started`.
*/
blob_file_gc_state_machine() : current_state_(blob_file_gc_state::not_started) {}
blob_file_gc_state_machine() = default;

/**
* @brief Initiates the BLOB file scan.
Expand Down Expand Up @@ -198,7 +195,7 @@ class blob_file_gc_state_machine {


private:
blob_file_gc_state current_state_; ///< Stores the current state.
blob_file_gc_state current_state_ = blob_file_gc_state::not_started; ///< Stores the current state.
mutable std::mutex mutex_; ///< Mutex to ensure thread-safe state transitions.
snapshot_scan_mode snapshot_scan_mode_ = snapshot_scan_mode::none;
};
Expand Down

0 comments on commit c9c5dd7

Please sign in to comment.