Merge pull request #25636 from taosdata/fix/fixRocksdbInitFailed3
Fix/fixRocksdbInitFailed3
This commit is contained in:
commit
48ae3ee53b
|
@ -1964,6 +1964,7 @@ STaskDbWrapper* taskDbOpenImpl(char* key, char* statePath, char* dbPath) {
|
||||||
stInfo("newly create db, need to restart");
|
stInfo("newly create db, need to restart");
|
||||||
// pre create db
|
// pre create db
|
||||||
pTaskDb->db = rocksdb_open(pTaskDb->pCfOpts[0], dbPath, &err);
|
pTaskDb->db = rocksdb_open(pTaskDb->pCfOpts[0], dbPath, &err);
|
||||||
|
if (pTaskDb->db == NULL) goto _EXIT;
|
||||||
rocksdb_close(pTaskDb->db);
|
rocksdb_close(pTaskDb->db);
|
||||||
|
|
||||||
if (cfNames != NULL) {
|
if (cfNames != NULL) {
|
||||||
|
|
Loading…
Reference in New Issue