rebuild sliding window
This commit is contained in:
parent
a7b1ee9d59
commit
c7a50acd63
|
@ -99,6 +99,9 @@ void setCountOutputBuf(SStreamAggSupporter* pAggSup, TSKEY ts, uint64_t groupId,
|
||||||
(void**)&pCurWin->winInfo.pStatePos, &size);
|
(void**)&pCurWin->winInfo.pStatePos, &size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (ts < pCurWin->winInfo.sessionWin.win.ekey) {
|
||||||
|
pBuffInfo->rebuildWindow = true;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
code = pAggSup->stateStore.streamStateCountWinAddIfNotExist(
|
code = pAggSup->stateStore.streamStateCountWinAddIfNotExist(
|
||||||
pAggSup->pState, &pCurWin->winInfo.sessionWin, pAggSup->windowCount, (void**)&pCurWin->winInfo.pStatePos, &size);
|
pAggSup->pState, &pCurWin->winInfo.sessionWin, pAggSup->windowCount, (void**)&pCurWin->winInfo.pStatePos, &size);
|
||||||
|
|
|
@ -488,6 +488,7 @@ SStreamStateCur* countWinStateSeekKeyPrev(SStreamFileState* pFileState, const SS
|
||||||
void* pFileStore = getStateFileStore(pFileState);
|
void* pFileStore = getStateFileStore(pFileState);
|
||||||
SStreamStateCur* pCur = streamStateSessionSeekKeyPrev_rocksdb(pFileStore, pWinKey);
|
SStreamStateCur* pCur = streamStateSessionSeekKeyPrev_rocksdb(pFileStore, pWinKey);
|
||||||
if (pCur) {
|
if (pCur) {
|
||||||
|
pCur->pStreamFileState = pFileState;
|
||||||
SSessionKey key = {0};
|
SSessionKey key = {0};
|
||||||
void* pVal = NULL;
|
void* pVal = NULL;
|
||||||
int len = 0;
|
int len = 0;
|
||||||
|
|
Loading…
Reference in New Issue