Skip to content

Commit

Permalink
feat
Browse files Browse the repository at this point in the history
  • Loading branch information
wentaojin committed Aug 8, 2024
1 parent 48f1b0b commit cc58d1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions component/cluster/command/scalein.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,13 +294,13 @@ func scaleInDBMSCluster(ctx context.Context, topo *cluster.Topology, gOpt *opera
}
}

_, err = etcdutil.DeleteKey(etcdCli, stringutil.StringBuilder(constant.DefaultMasterRegisterPrefixKey, instance.InstanceName()))
_, err = etcdutil.DeleteKey(etcdCli, stringutil.StringBuilder(constant.DefaultInstanceServiceRegisterPrefixKey, instance.InstanceName()))
if err != nil {
return err
}

case cluster.ComponentDBMSWorker:
_, err = etcdutil.DeleteKey(etcdCli, stringutil.StringBuilder(constant.DefaultWorkerRegisterPrefixKey, instance.InstanceName()))
_, err = etcdutil.DeleteKey(etcdCli, stringutil.StringBuilder(constant.DefaultInstanceServiceRegisterPrefixKey, instance.InstanceName()))
if err != nil {
return err
}
Expand Down

0 comments on commit cc58d1f

Please sign in to comment.