fix rocskdb init failed

This commit is contained in:
Yihao Deng 2024-05-06 03:22:28 +00:00
parent 44100139a4
commit 8061688e79
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"); 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) {