Skip to content

Commit 7fb1e3f

Browse files
committed
kill unsupported config options
1 parent 623ded2 commit 7fb1e3f

File tree

5 files changed

+3
-22
lines changed

5 files changed

+3
-22
lines changed

server/config.go

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ type PostgresReplicationConfig struct {
5151
// BehaviorYAMLConfig contains server configuration regarding how the server should behave
5252
type 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

7066
type DoltgresUserConfig struct {
@@ -295,11 +291,7 @@ func (cfg *DoltgresConfig) ShouldEncodeLoggedQuery() bool {
295291
}
296292

297293
func (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

305297
func (cfg *DoltgresConfig) DisableClientMultiStatements() bool {
@@ -411,11 +403,7 @@ func (cfg *DoltgresConfig) ClusterConfig() cluster.Config {
411403
}
412404

413405
func (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

421409
func (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

testing/bats/doltgres.bats

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,8 @@ log_level: info
3636
3737
behavior:
3838
read_only: false
39-
autocommit: true
40-
persistence_behavior: load
4139
disable_client_multi_statements: false
4240
dolt_transaction_commit: false
43-
event_scheduler: "ON"
4441
4542
user:
4643
name: ""

testing/bats/replication-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ log_level: debug
22

33
behavior:
44
read_only: false
5-
persistence_behavior: load
65
disable_client_multi_statements: false
76
dolt_transaction_commit: false
87

testing/bats/setup/common.bash

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ setup_common() {
3535
}
3636

3737
teardown_common() {
38-
echo $output
3938
# rm -rf can fail with a "directory not empty" error in some cases. This seems to be a misleading
4039
# error message; the real error is that a file is still in use. Instead of waiting longer for
4140
# any processes to finish, we just ignore any error removing temp files and use 'true' as the last

testing/bats/setup/query-server-common.bash

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ defineCONFIG() {
100100
cat <<EOF
101101
behavior:
102102
read_only: false
103-
autocommit: true
104-
persistence_behavior: load
105103
disable_client_multi_statements: false
106104
dolt_transaction_commit: false
107105

0 commit comments

Comments
 (0)