mirror of https://github.com/milvus-io/milvus.git
fix: Use metrics values instead of hardcode mock values (#36782)
Resolves #36781 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/36792/head
parent
794e3ab7e5
commit
116d7c18cc
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue