fix more
This commit is contained in:
parent
f85a4df0e6
commit
91394f2e6d
|
@ -573,8 +573,15 @@ static int32_t tsdbCommitInfoBuild(STsdb *tsdb) {
|
||||||
fid = tsdbKeyFid(TSDBROW_TS(row), tsdb->keepCfg.days, tsdb->keepCfg.precision);
|
fid = tsdbKeyFid(TSDBROW_TS(row), tsdb->keepCfg.days, tsdb->keepCfg.precision);
|
||||||
tsdbFidKeyRange(fid, tsdb->keepCfg.days, tsdb->keepCfg.precision, &minKey, &maxKey);
|
tsdbFidKeyRange(fid, tsdb->keepCfg.days, tsdb->keepCfg.precision, &minKey, &maxKey);
|
||||||
|
|
||||||
code = tsdbCommitInfoAdd(tsdb, fid);
|
SFileSetCommitInfo *info;
|
||||||
TSDB_CHECK_CODE(code, lino, _exit);
|
SFileSetCommitInfo tinfo = {
|
||||||
|
.fid = fid,
|
||||||
|
};
|
||||||
|
vHashGet(tsdb->commitInfo->ht, &tinfo, (void **)&info);
|
||||||
|
if (info == NULL) {
|
||||||
|
code = tsdbCommitInfoAdd(tsdb, fid);
|
||||||
|
TSDB_CHECK_CODE(code, lino, _exit);
|
||||||
|
}
|
||||||
|
|
||||||
from.key.ts = maxKey + 1;
|
from.key.ts = maxKey + 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue