From c149995bcd71cb90b6df5c17e7b7b1fbf4054404 Mon Sep 17 00:00:00 2001
From: sunby <bingyi.sun@zilliz.com>
Date: Wed, 24 Feb 2021 17:56:03 +0800
Subject: [PATCH] Change return value of GetCollectionStatistics.

Signed-off-by: sunby <bingyi.sun@zilliz.com>
---
 internal/dataservice/server.go | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/internal/dataservice/server.go b/internal/dataservice/server.go
index d358b1c70..6c700e098 100644
--- a/internal/dataservice/server.go
+++ b/internal/dataservice/server.go
@@ -727,14 +727,8 @@ func (s *Server) GetCollectionStatistics(req *datapb.CollectionStatsRequest) (*d
 		resp.Status.Reason = err.Error()
 		return resp, nil
 	}
-	memsize, err := s.meta.GetMemSizeOfCollection(req.CollectionID)
-	if err != nil {
-		resp.Status.Reason = err.Error()
-		return resp, nil
-	}
 	resp.Status.ErrorCode = commonpb.ErrorCode_SUCCESS
-	resp.Stats = append(resp.Stats, &commonpb.KeyValuePair{Key: "nums", Value: strconv.FormatInt(nums, 10)})
-	resp.Stats = append(resp.Stats, &commonpb.KeyValuePair{Key: "memsize", Value: strconv.FormatInt(memsize, 10)})
+	resp.Stats = append(resp.Stats, &commonpb.KeyValuePair{Key: "row_count", Value: strconv.FormatInt(nums, 10)})
 	return resp, nil
 }
 
-- 
GitLab