Skip to content

Commit eeb9940

Browse files
authored
Merge pull request #21 from dfeen87/copilot/check-for-consistencies-and-bugs
Normalize supervisor prediction-mismatch failure naming across active code paths
2 parents e420fce + ee727c8 commit eeb9940

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

include/supervisor/redundant_supervisor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class RedundantSupervisor {
99
CRITICAL_ROLLBACK_FAIL,
1010
CRITICAL_NO_ROLLBACK,
1111
PRIMARY_CHANNEL_LOCKUP,
12-
MISMATED_PREDICTION
12+
MISMATCHED_PREDICTION
1313
};
1414

1515
void init();

src/supervisor/supervisor_failure_strings.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ inline const char* supervisor_failure_reason_string(
1010
return "CRITICAL_NO_ROLLBACK";
1111
case RedundantSupervisor::FailureMode::PRIMARY_CHANNEL_LOCKUP:
1212
return "PRIMARY_CHANNEL_LOCKUP";
13-
case RedundantSupervisor::FailureMode::MISMATED_PREDICTION:
14-
return "MISMATED_PREDICTION";
13+
case RedundantSupervisor::FailureMode::MISMATCHED_PREDICTION:
14+
return "MISMATCHED_PREDICTION";
1515
default:
1616
return "UNKNOWN";
1717
}

0 commit comments

Comments
 (0)