Skip to content

Commit 81c0089

Browse files
authored
mysql: bug fixes (#1195)
1 parent 9e9969b commit 81c0089

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/persistence/persistence-factory/factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ func buildRatelimiters(cfg *config.Persistence) map[string]common.TokenBucket {
299299
qps = ds.SQL.MaxQPS
300300
}
301301
if qps > 0 {
302-
result[dsName] = common.NewTokenBucket(ds.Cassandra.MaxQPS, common.NewRealTimeSource())
302+
result[dsName] = common.NewTokenBucket(qps, common.NewRealTimeSource())
303303
}
304304
}
305305
return result

schema/mysql/v57/cadence/schema.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ task_list VARCHAR(255) NOT NULL,
237237
started_identity VARCHAR(255) NOT NULL,
238238
has_retry_policy BOOLEAN NOT NULL,
239239
init_interval INT NOT NULL,
240-
backoff_coefficient DOUBLE NOT NULL,
240+
backoff_coefficient DOUBLE,
241241
max_interval INT NOT NULL,
242242
expiration_time TIMESTAMP(3) NOT NULL DEFAULT '1970-01-01 00:00:01.000',
243243
max_attempts INT NOT NULL,

0 commit comments

Comments
 (0)