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:
commit
3e2218db56
|
@ -1764,6 +1764,11 @@ int32_t tscHandleMultivnodeInsert(SSqlObj *pSql) {
|
||||||
break;
|
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;
|
pSql->pSubs[i] = pNew;
|
||||||
tscTrace("%p sub:%p create subObj success. orderOfSub:%d", pSql, pNew, i);
|
tscTrace("%p sub:%p create subObj success. orderOfSub:%d", pSql, pNew, i);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue