We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d94e350 commit 9694b4dCopy full SHA for 9694b4d
pkg/workload/tpcc/tpcc.go
@@ -621,9 +621,16 @@ func (w *tpcc) Hooks() workload.Hooks {
621
// extraordinarily longer. If data is imported with IMPORT, this
622
// statement is idempotent.
623
if len(w.multiRegionCfg.regions) > 0 {
624
+ // Locality changes can only be made if schema_locked is toggled.
625
+ if _, err := db.Exec(`ALTER TABLE item SET (schema_locked=false)`); err != nil {
626
+ return err
627
+ }
628
if _, err := db.Exec(fmt.Sprintf(`ALTER TABLE item SET %s`, localityGlobalSuffix)); err != nil {
629
return err
630
}
631
+ if _, err := db.Exec(`ALTER TABLE item SET (schema_locked=true)`); err != nil {
632
633
634
635
636
0 commit comments