Merge pull request #3080 from taosdata/bugfix/td-1150

fix td-1150
This commit is contained in:
Shengliang Guan 2020-08-15 14:13:32 +08:00 committed by GitHub
commit 333934e77d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
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;
}
}