fix delay 24 hours bugs
This commit is contained in:
parent
2346483fa8
commit
ae9c4a4883
|
@ -340,8 +340,12 @@ static void tscSetRetryTimer(SSqlStream *pStream, SSqlObj *pSql, int64_t timer)
|
||||||
if (pStream->isProject) {
|
if (pStream->isProject) {
|
||||||
int64_t now = taosGetTimestamp(pStream->precision);
|
int64_t now = taosGetTimestamp(pStream->precision);
|
||||||
int64_t etime = now > pStream->etime ? pStream->etime : now;
|
int64_t etime = now > pStream->etime ? pStream->etime : now;
|
||||||
|
int64_t maxRetent = tsMaxRetentWindow * 1000;
|
||||||
if (pStream->etime < now && now - pStream->etime > tsMaxRetentWindow) {
|
if(pStream->precision == TSDB_TIME_PRECISION_MICRO) {
|
||||||
|
maxRetent *= 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (pStream->etime < now && now - pStream->etime > maxRetent) {
|
||||||
/*
|
/*
|
||||||
* current time window will be closed, since it too early to exceed the maxRetentWindow value
|
* current time window will be closed, since it too early to exceed the maxRetentWindow value
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue