Merge pull request #5103 from taosdata/hotfix/TD-2902
[TD-2902]Insert affectedRows is not correct with multiple vnodes
This commit is contained in:
commit
9777218e1b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue