Skip to content

Commit

Permalink
fix: rebalance: settings mutations_sync = 1
Browse files Browse the repository at this point in the history
  • Loading branch information
YenchangChan committed Mar 6, 2024
1 parent 67d28b9 commit d9a1311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/clickhouse/rebalance.go
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ func (r *CKRebalance) MoveBackup() error {

var failedParts []string
for _, part := range parts {
query := fmt.Sprintf("ALTER TABLE `%s`.`%s` ATTACH PART '%s'", r.Database, r.TmpTable, part)
query := fmt.Sprintf("ALTER TABLE `%s`.`%s` ATTACH PART '%s' settings mutations_sync=1", r.Database, r.TmpTable, part)
log.Logger.Debugf("[%s]%s", host, query)
if err = conn.Exec(query); err != nil {
failedParts = append(failedParts, part)
Expand Down

0 comments on commit d9a1311

Please sign in to comment.