Merge pull request #5103 from taosdata/hotfix/TD-2902

[TD-2902]Insert affectedRows is not correct with multiple vnodes
This commit is contained in:
haojun Liao 2021-02-02 12:56:22 +08:00 committed by GitHub
commit 9777218e1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2410,7 +2410,7 @@ static void multiVnodeInsertFinalize(void* param, TAOS_RES* tres, int numOfRows)
// record the total inserted rows
if (numOfRows > 0) {
pParentObj->res.numOfRows += numOfRows;
atomic_add_fetch_32(&pParentObj->res.numOfRows, numOfRows);
}
if (taos_errno(tres) != TSDB_CODE_SUCCESS) {