@@ -51,8 +51,6 @@ type PostgresReplicationConfig struct {
5151// BehaviorYAMLConfig contains server configuration regarding how the server should behave
5252type DoltgresBehaviorConfig struct {
5353 ReadOnly * bool `yaml:"read_only,omitempty" minver:"TBD"`
54- // PersistenceBehavior regulates loading persisted system variable configuration.
55- PersistenceBehavior * string `yaml:"persistence_behavior,omitempty" minver:"TBD"`
5654 // Disable processing CLIENT_MULTI_STATEMENTS support on the
5755 // sql server. Dolt's handling of CLIENT_MULTI_STATEMENTS is currently
5856 // broken. If a client advertises to support it (mysql cli client
@@ -63,8 +61,6 @@ type DoltgresBehaviorConfig struct {
6361 // DoltTransactionCommit enables the @@dolt_transaction_commit system variable, which
6462 // automatically creates a Dolt commit when any SQL transaction is committed.
6563 DoltTransactionCommit * bool `yaml:"dolt_transaction_commit,omitempty" minver:"TBD"`
66-
67- EventSchedulerStatus * string `yaml:"event_scheduler,omitempty" minver:"TBD"`
6864}
6965
7066type DoltgresUserConfig struct {
@@ -295,11 +291,7 @@ func (cfg *DoltgresConfig) ShouldEncodeLoggedQuery() bool {
295291}
296292
297293func (cfg * DoltgresConfig ) PersistenceBehavior () string {
298- if cfg .BehaviorConfig == nil || cfg .BehaviorConfig .PersistenceBehavior == nil {
299- return "load"
300- }
301-
302- return * cfg .BehaviorConfig .PersistenceBehavior
294+ return "load"
303295}
304296
305297func (cfg * DoltgresConfig ) DisableClientMultiStatements () bool {
@@ -411,11 +403,7 @@ func (cfg *DoltgresConfig) ClusterConfig() cluster.Config {
411403}
412404
413405func (cfg * DoltgresConfig ) EventSchedulerStatus () string {
414- if cfg .BehaviorConfig == nil || cfg .BehaviorConfig .EventSchedulerStatus == nil {
415- return "OFF"
416- }
417-
418- return * cfg .BehaviorConfig .EventSchedulerStatus
406+ return "OFF"
419407}
420408
421409func (cfg * DoltgresConfig ) ValueSet (value string ) bool {
@@ -427,7 +415,7 @@ func (cfg *DoltgresConfig) ValueSet(value string) bool {
427415 case maxConnectionsKey :
428416 return false
429417 case eventSchedulerKey :
430- return cfg . BehaviorConfig != nil && cfg . BehaviorConfig . EventSchedulerStatus != nil
418+ return false
431419 }
432420
433421 return false
0 commit comments