mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 04:49:08 +08:00
Add InsertCnt (#6131)
* Add InsertCnt Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com> * Enhance log Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
This commit is contained in:
parent
2977416c9b
commit
42be531f9c
@ -1241,6 +1241,7 @@ func (node *Proxy) Insert(ctx context.Context, request *milvuspb.InsertRequest)
|
||||
}
|
||||
it.result.ErrIndex = errIndex
|
||||
}
|
||||
it.result.InsertCnt = int64(it.req.NumRows)
|
||||
return it.result, nil
|
||||
}
|
||||
|
||||
|
@ -1602,7 +1602,9 @@ func (c *Core) CreateIndex(ctx context.Context, in *milvuspb.CreateIndexRequest)
|
||||
}
|
||||
err := executeTask(t)
|
||||
if err != nil {
|
||||
log.Debug("CreateIndex Failed", zap.String("collection name", in.CollectionName), zap.String("field name", in.FieldName), zap.Int64("msgID", in.Base.MsgID))
|
||||
log.Debug("CreateIndex Failed", zap.String("collection name", in.CollectionName),
|
||||
zap.String("field name", in.FieldName), zap.Int64("msgID", in.Base.MsgID),
|
||||
zap.Error(err))
|
||||
return &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_UnexpectedError,
|
||||
Reason: "CreateIndex failed, error = " + err.Error(),
|
||||
|
Loading…
Reference in New Issue
Block a user