[skip ci] Add comment for getPrimaryKeys (#13116)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2021-12-09 22:17:50 +08:00 committed by GitHub
parent cbf284ab35
commit acd59cd380
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -326,7 +326,7 @@ func (iNode *insertNode) delete(deleteData *deleteData, segmentID UniqueID, wg *
}
// TODO: remove this function to proper file
// TODO: why not return error?
// getPrimaryKeys would get primary keys by insert messages
func getPrimaryKeys(msg *msgstream.InsertMsg, streamingReplica ReplicaInterface) ([]int64, error) {
if len(msg.RowIDs) != len(msg.Timestamps) || len(msg.RowIDs) != len(msg.RowData) {
log.Warn("misaligned messages detected")