Skip to content

Commit f01ffe9

Browse files
committed
review feedback (update comment)
1 parent 0f15899 commit f01ffe9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

nexus/reconfigurator/execution/src/database.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@ pub(crate) async fn deploy_db_metadata_nexus_records(
2121
nexus_id: OmicronZoneUuid,
2222
) -> Result<(), anyhow::Error> {
2323
// To determine what state to use for new records, we need to know which is
24-
// the currently active Nexus generation. That is necessarily the
24+
// the currently active Nexus generation. This is not quite the same as the
25+
// blueprint's `nexus_generation`. That field describes which generation
26+
// the system is *trying* to put in control. It gets bumped in order to
27+
// trigger the handoff process. But between when it gets bumped and when
28+
// the handoff has finished, that generation number is ahead of the one
29+
// currently in control.
30+
//
31+
// The actual generation number that's currently active is necessarily the
2532
// generation number of the Nexus instance that's doing the execution.
2633
let active_generation = blueprint
2734
.all_nexus_zones(BlueprintZoneDisposition::is_in_service)

0 commit comments

Comments
 (0)