Skip to content

Commit

Permalink
fix(frontend): 修复rediscluster集群容量变更和集群类型变更bug #8781
Browse files Browse the repository at this point in the history
  • Loading branch information
3octaves authored and iSecloud committed Dec 24, 2024
1 parent beb6254 commit 903a2fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -590,9 +590,10 @@
if (capacityNeed.value > 0) {
isTableLoading.value = true;
const clusterType = props.data?.clusterType ?? ClusterTypes.TWEMPROXY_REDIS_INSTANCE;
const machineType = clusterType === ClusterTypes.PREDIXY_REDIS_CLUSTER ? ClusterTypes.PREDIXY_REDIS_CLUSTER : specClusterMachineMap[clusterType];
const params = {
spec_cluster_type: 'redis',
spec_machine_type: specClusterMachineMap[clusterType],
spec_machine_type: machineType,
shard_num: props.data.shardNum === 0 ? undefined : props.data.shardNum,
capacity: capacityNeed.value,
future_capacity: capacityNeed.value,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,10 @@
if (specInfo.capacityNeed > 0 && specInfo.capacityFutureNeed > 0) {
isTableLoading.value = true;
const clusterType = props.data?.clusterType ?? ClusterTypes.TWEMPROXY_REDIS_INSTANCE;
const machineType = clusterType === ClusterTypes.PREDIXY_REDIS_CLUSTER ? ClusterTypes.PREDIXY_REDIS_CLUSTER : specClusterMachineMap[clusterType];
const params = {
spec_cluster_type: 'redis',
spec_machine_type: specClusterMachineMap[clusterType],
spec_machine_type: machineType,
shard_num: props.data.shardNum === 0 ? undefined : props.data.shardNum,
capacity: specInfo.capacityNeed,
future_capacity: specInfo.capacityNeed <= specInfo.capacityFutureNeed ? specInfo.capacityFutureNeed : specInfo.capacityNeed,
Expand Down

0 comments on commit 903a2fa

Please sign in to comment.