Skip to content

Commit 27463e1

Browse files
committed
Add feature flags
1 parent 692bd95 commit 27463e1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

features/features.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,22 @@ type Config struct {
126126
// This feature flag also causes CAA checks to happen after all remote VAs
127127
// have passed DCV.
128128
EnforceMPIC bool
129+
130+
// ReadNewOrderSchema causes the SA to attempt to read from the new orders,
131+
// authorizations, and validations tables. This allows us to continue reading
132+
// from these tables even if we have to roll back the flag which causes us
133+
// to write to them.
134+
// - Simple select-by-id go to whichever schema hosts the row being selected
135+
// - Complex queries go solely to the new schema (this means that authz and
136+
// order reuse work only in the new schema).
137+
ReadNewOrderSchema bool
138+
139+
// WriteNewOrderSchema causes the SA to write to the new orders,
140+
// authorizations, and validations tables. Do not enable this flag unless
141+
// ReadNewOrderSchema is also enabled.
142+
// - Inserts go solely to the new schema
143+
// - Updates go to whichver schema hosts the row being updated
144+
WriteNewOrderSchema bool
129145
}
130146

131147
var fMu = new(sync.RWMutex)

0 commit comments

Comments
 (0)