enh: code optimization for insert_req statistics

This commit is contained in:
Cary Xu 2022-10-12 10:51:18 +08:00
parent 553394ca7f
commit 488b4f31fd
1 changed files with 1 additions and 1 deletions

View File

@ -953,7 +953,7 @@ _exit:
tdProcessRSmaSubmit(pVnode->pSma, pReq, STREAM_INPUT__DATA_SUBMIT);
}
// N.B. not strict as the following update steps is not atomic
// N.B. not strict as the following procedure is not atomic
atomic_add_fetch_64(&pVnode->statis.nInsert, submitRsp.numOfRows);
atomic_add_fetch_64(&pVnode->statis.nInsertSuccess, submitRsp.affectedRows);
atomic_add_fetch_64(&pVnode->statis.nBatchInsert, statis.nBatchInsert);