enh: code optimization for insert_req statistics

This commit is contained in:
Cary Xu 2022-10-12 10:47:31 +08:00
parent 0d50e5933b
commit 553394ca7f
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 update steps 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);