fix td-1114
This commit is contained in:
parent
fe6f96b1ce
commit
c505914b04
|
@ -135,6 +135,10 @@ static void tscProcessStreamTimer(void *handle, void *tmrId) {
|
||||||
etime = pStream->stime + (etime - pStream->stime) / pStream->interval * pStream->interval;
|
etime = pStream->stime + (etime - pStream->stime) / pStream->interval * pStream->interval;
|
||||||
}
|
}
|
||||||
pQueryInfo->window.ekey = etime;
|
pQueryInfo->window.ekey = etime;
|
||||||
|
if (pQueryInfo->window.skey >= pQueryInfo->window.ekey) {
|
||||||
|
tscSetRetryTimer(pStream, pSql, pStream->slidingTime);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// launch stream computing in a new thread
|
// launch stream computing in a new thread
|
||||||
|
|
|
@ -54,7 +54,7 @@ class TDTestCase:
|
||||||
tdSql.execute("insert into tb%d values(now + %ds, %d, %d)" % (i, j, j, j))
|
tdSql.execute("insert into tb%d values(now + %ds, %d, %d)" % (i, j, j, j))
|
||||||
|
|
||||||
tdLog.info("=============== step5")
|
tdLog.info("=============== step5")
|
||||||
tdLog.sleep(30)
|
tdLog.sleep(40)
|
||||||
tdSql.waitedQuery("select * from st order by ts desc", 1, 120)
|
tdSql.waitedQuery("select * from st order by ts desc", 1, 120)
|
||||||
v = tdSql.getData(0, 3)
|
v = tdSql.getData(0, 3)
|
||||||
if v <= 51:
|
if v <= 51:
|
||||||
|
|
Loading…
Reference in New Issue