Skip to content

Commit d656b27

Browse files
committed
fix(other): 修复主机查询磁盘问题 #16359
1 parent 2619308 commit d656b27

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dbm-services/common/db-resource/internal/controller/manage/rs_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func (c *MachineResourceGetterInputParam) matchStorageSpecs(db *gorm.DB) {
157157
} else if cmutil.IsNotEmpty(c.DiskType) {
158158
db.Where(model.JSONQuery("storage_device").SubValContains(c.DiskType, "disk_type"))
159159
}
160-
c.Disk.MatchTotalStorageSize(db)
160+
c.Disk.MatchTotalDataStorageSize(db)
161161
}
162162
}
163163

dbm-services/common/db-resource/internal/svr/meta/meta.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ func (m MeasureRange) Legal() bool {
3737
return true
3838
}
3939

40-
// MatchTotalStorageSize match total disk capacity
41-
func (m *MeasureRange) MatchTotalStorageSize(db *gorm.DB) {
42-
m.MatchRange(db, "total_storage_cap")
40+
// MatchTotalDataStorageSize match total data disk capacity
41+
func (m *MeasureRange) MatchTotalDataStorageSize(db *gorm.DB) {
42+
m.MatchRange(db, "total_data_storage_cap")
4343
}
4444

4545
// MatchMem match memory size range

0 commit comments

Comments
 (0)