Skip to content

Commit

Permalink
Improve state transitions in blob_file_garbage_collector (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
umegane committed Feb 21, 2025
1 parent 500a609 commit f5516d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/limestone/blob_file_gc_state_machine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ blob_file_gc_state blob_file_gc_state_machine::transition(blob_file_gc_event eve
const auto& state_transition_map = get_state_transition_map();
auto it = state_transition_map.find({current_state_, event});
if (it == state_transition_map.end()) {
VLOG_LP(log_trace) << "Invalid transition" << to_string(current_state_) << " with event " << to_string(event);
throw std::logic_error("Invalid transition: " + to_string(current_state_) + " with event " + to_string(event));
}
VLOG_LP(log_trace) << "Transitioned to " << to_string(it->second);
Expand Down

0 comments on commit f5516d5

Please sign in to comment.