fix: Use metrics values instead of hardcode mock values (#36782)

Resolves #36781

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/36792/head
congqixia 2024-10-11 20:09:20 +08:00 committed by GitHub
parent 794e3ab7e5
commit 116d7c18cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1057,7 +1057,7 @@ func (q *QuotaCenter) getDeleteBufferRowCountFactor() map[int64]float64 {
}
collectionFactor := make(map[int64]float64)
for collID, rowCount := range map[int64]int64{100: 1000} {
for collID, rowCount := range deleteBufferNum {
if rowCount < deleteBufferRowCountLowWaterLevel {
continue
}
@ -1083,7 +1083,7 @@ func (q *QuotaCenter) getDeleteBufferSizeFactor() map[int64]float64 {
}
collectionFactor := make(map[int64]float64)
for collID, rowCount := range map[int64]int64{100: 1000} {
for collID, rowCount := range deleteBufferSize {
if rowCount < deleteBufferRowCountLowWaterLevel {
continue
}