Merge pull request #25636 from taosdata/fix/fixRocksdbInitFailed3

Fix/fixRocksdbInitFailed3
This commit is contained in:
Hongze Cheng 2024-05-06 15:56:19 +08:00 committed by GitHub
commit 48ae3ee53b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -1964,6 +1964,7 @@ STaskDbWrapper* taskDbOpenImpl(char* key, char* statePath, char* dbPath) {
stInfo("newly create db, need to restart");
// pre create db
pTaskDb->db = rocksdb_open(pTaskDb->pCfOpts[0], dbPath, &err);
if (pTaskDb->db == NULL) goto _EXIT;
rocksdb_close(pTaskDb->db);
if (cfNames != NULL) {