File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,8 @@ pub struct Blueprint {
230
230
/// The generation of the active group of Nexuses
231
231
///
232
232
/// If a Nexus instance notices it has a nexus_generation less than
233
- /// this value, it will start to quiesce (see: RFD 588).
233
+ /// this value, it will start to quiesce in preparation for handing off
234
+ /// control to the newer generation (see: RFD 588).
234
235
pub nexus_generation : Generation ,
235
236
236
237
/// CockroachDB state fingerprint when this blueprint was created
Original file line number Diff line number Diff line change @@ -4757,6 +4757,12 @@ CREATE TABLE IF NOT EXISTS omicron.public.bp_omicron_zone (
4757
4757
OR
4758
4758
(image_source != ' artifact'
4759
4759
AND image_artifact_sha256 IS NULL )
4760
+ ),
4761
+
4762
+ CONSTRAINT nexus_generation_for_nexus_zones CHECK (
4763
+ (zone_type = ' nexus' AND nexus_generation IS NOT NULL )
4764
+ OR
4765
+ (zone_type != ' nexus' AND nexus_generation IS NULL )
4760
4766
)
4761
4767
);
4762
4768
Original file line number Diff line number Diff line change
1
+ ALTER TABLE omicron .public .bp_omicron_zone ADD CONSTRAINT IF NOT EXISTS nexus_generation_for_nexus_zones CHECK (
2
+ (zone_type = ' nexus' AND nexus_generation IS NOT NULL )
3
+ OR
4
+ (zone_type != ' nexus' AND nexus_generation IS NULL )
5
+ );
You can’t perform that action at this time.
0 commit comments