Merge pull request #2064 from taosdata/hotfix/subinsert

[td-409]fix bug that callback function is not set correctly in sub-in…
This commit is contained in:
Shengliang Guan 2020-05-28 18:47:16 +08:00 committed by GitHub
commit 3e2218db56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -1764,6 +1764,11 @@ int32_t tscHandleMultivnodeInsert(SSqlObj *pSql) {
break;
}
/*
* assign the callback function to fetchFp to make sure that the error process function can restore
* the callback function (multiVnodeInsertMerge) correctly.
*/
pNew->fetchFp = pNew->fp;
pSql->pSubs[i] = pNew;
tscTrace("%p sub:%p create subObj success. orderOfSub:%d", pSql, pNew, i);
}