This commit is contained in:
Hongze Cheng 2020-06-20 02:05:46 +00:00
parent 678a7f4ea7
commit 8bcefa8d50
1 changed files with 27 additions and 25 deletions

View File

@ -371,6 +371,7 @@ static void *tsdbCommitData(void *arg) {
pMem->keyFirst, pMem->keyLast, pMem->numOfRows);
// Create the iterator to read from cache
if (pMem->numOfRows > 0) {
iters = tsdbCreateTableIters(pRepo);
if (iters == NULL) {
tsdbError("vgId:%d failed to create commit iterator since %s", REPO_ID(pRepo), tstrerror(terrno));
@ -399,6 +400,7 @@ static void *tsdbCommitData(void *arg) {
goto _exit;
}
}
}
// Commit to update meta file
if (tsdbCommitMeta(pRepo) < 0) {