support reopen stream state

This commit is contained in:
yihaoDeng 2023-08-09 09:06:22 +00:00
parent a619b8f5be
commit a336a7b1a4
1 changed files with 4 additions and 0 deletions

View File

@ -277,6 +277,10 @@ int32_t backendManagerDumpTo(SBackendManager* bm, char* dname) {
sprintf(srcDir, "%s%s%s%" PRId64 "", bm->path, TD_DIRSEP, "checkpoint", bm->curChkpId); sprintf(srcDir, "%s%s%s%" PRId64 "", bm->path, TD_DIRSEP, "checkpoint", bm->curChkpId);
sprintf(dstDir, "%s%s%s", bm->path, TD_DIRSEP, dname); sprintf(dstDir, "%s%s%s", bm->path, TD_DIRSEP, dname);
if (!taosDirExist(srcDir)) {
return 0;
}
code = taosMkDir(dstDir); code = taosMkDir(dstDir);
if (code != 0) { if (code != 0) {
return code; return code;