fix td-1150

This commit is contained in:
Bomin Zhang 2020-08-15 13:43:20 +08:00
parent afd940d903
commit c5ae6d2aaf
1 changed files with 5 additions and 1 deletions

View File

@ -136,7 +136,11 @@ static void tscProcessStreamTimer(void *handle, void *tmrId) {
} }
pQueryInfo->window.ekey = etime; pQueryInfo->window.ekey = etime;
if (pQueryInfo->window.skey >= pQueryInfo->window.ekey) { if (pQueryInfo->window.skey >= pQueryInfo->window.ekey) {
tscSetRetryTimer(pStream, pSql, pStream->slidingTime); int64_t timer = pStream->slidingTime;
if (pStream->precision == TSDB_TIME_PRECISION_MICRO) {
timer /= 1000l;
}
tscSetRetryTimer(pStream, pSql, timer);
return; return;
} }
} }