[TD-860] invalid write in sdb

This commit is contained in:
Shengliang Guan 2020-07-07 11:23:44 +00:00
parent 453715c789
commit 566b286084
1 changed files with 2 additions and 1 deletions

View File

@ -551,8 +551,9 @@ static int sdbWrite(void *param, void *data, int type) {
// from app, oper is created
if (pOper != NULL) {
// forward to peers
pOper->processedCount = 0;
int32_t syncCode = syncForwardToPeer(tsSdbObj.sync, pHead, pOper, TAOS_QTYPE_RPC);
if (syncCode > 0) pOper->processedCount = 0;
if (syncCode <= 0) pOper->processedCount = 1;
if (syncCode < 0) {
sdbError("table:%s, failed to forward request, result:%s action:%s record:%s version:%" PRId64, pTable->tableName,