diff --git a/src/tsdb/src/tsdbMain.c b/src/tsdb/src/tsdbMain.c index 27c66acc56..3990c0c516 100644 --- a/src/tsdb/src/tsdbMain.c +++ b/src/tsdb/src/tsdbMain.c @@ -135,7 +135,7 @@ _err: // Note: all working thread and query thread must stopped when calling this function int tsdbCloseRepo(TSDB_REPO_T *repo, int toCommit) { - if (repo == NULL) return; + if (repo == NULL) return 0; STsdbRepo *pRepo = (STsdbRepo *)repo; int vgId = REPO_ID(pRepo);