diff --git a/source/dnode/vnode/src/sma/smaFS.c b/source/dnode/vnode/src/sma/smaFS.c index 23d252828390ebed308187bdd20c03b4a4e90f95..5dbe91f8367fd84606ed9ddc6e6bea642412cf7b 100644 --- a/source/dnode/vnode/src/sma/smaFS.c +++ b/source/dnode/vnode/src/sma/smaFS.c @@ -639,8 +639,7 @@ int32_t tdRSmaFSCopy(SSma *pSma, SRSmaFS *pFS) { code = tdRSmaFSCreate(pFS, size); TSDB_CHECK_CODE(code, lino, _exit); - taosArrayClear(pFS->aQTaskInf->pData); - taosArrayAddBatch(pFS->aQTaskInf->pData, qFS->aQTaskInf->pData, size); + taosArrayAddBatch(pFS->aQTaskInf, qFS->aQTaskInf->pData, size); _exit: if (code) {