enh: code optimization for insert_req statistics

This commit is contained in:
Cary Xu 2022-10-12 10:46:18 +08:00
parent 0691d7ff9a
commit 0d50e5933b
1 changed files with 1 additions and 1 deletions

View File

@ -956,8 +956,8 @@ _exit:
// 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.nBatchInsertSuccess, statis.nBatchInsertSuccess);
atomic_add_fetch_64(&pVnode->statis.nBatchInsert, statis.nBatchInsert);
atomic_add_fetch_64(&pVnode->statis.nBatchInsertSuccess, statis.nBatchInsertSuccess);
vDebug("vgId:%d, submit success, index:%" PRId64, pVnode->config.vgId, version);
return 0;