fixup: remove call to obsolete funcs of BgTask in tsdbSnapRAWWriter open and close
This commit is contained in:
parent
28e1d83662
commit
5cdf2b0b04
|
@ -363,9 +363,6 @@ int32_t tsdbSnapRAWWriterOpen(STsdb* pTsdb, int64_t ever, STsdbSnapRAWWriter** w
|
||||||
int32_t code = 0;
|
int32_t code = 0;
|
||||||
int32_t lino = 0;
|
int32_t lino = 0;
|
||||||
|
|
||||||
// disable background tasks
|
|
||||||
tsdbFSDisableBgTask(pTsdb->pFS);
|
|
||||||
|
|
||||||
// start to write
|
// start to write
|
||||||
writer[0] = taosMemoryCalloc(1, sizeof(*writer[0]));
|
writer[0] = taosMemoryCalloc(1, sizeof(*writer[0]));
|
||||||
if (writer[0] == NULL) return TSDB_CODE_OUT_OF_MEMORY;
|
if (writer[0] == NULL) return TSDB_CODE_OUT_OF_MEMORY;
|
||||||
|
@ -528,7 +525,6 @@ int32_t tsdbSnapRAWWriterClose(STsdbSnapRAWWriter** writer, int8_t rollback) {
|
||||||
|
|
||||||
taosThreadMutexUnlock(&writer[0]->tsdb->mutex);
|
taosThreadMutexUnlock(&writer[0]->tsdb->mutex);
|
||||||
}
|
}
|
||||||
tsdbFSEnableBgTask(tsdb->pFS);
|
|
||||||
|
|
||||||
TARRAY2_DESTROY(writer[0]->fopArr, NULL);
|
TARRAY2_DESTROY(writer[0]->fopArr, NULL);
|
||||||
tsdbFSDestroyCopySnapshot(&writer[0]->fsetArr);
|
tsdbFSDestroyCopySnapshot(&writer[0]->fsetArr);
|
||||||
|
|
Loading…
Reference in New Issue