Changeset: 04ad7f6c535c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/04ad7f6c535c
Modified Files:
monetdb5/modules/mal/clients.c
Branch: Aug2024
Log Message:
When setting the query timeout, do it only for following queries (not the
current).
diffs (16 lines):
diff --git a/monetdb5/modules/mal/clients.c b/monetdb5/modules/mal/clients.c
--- a/monetdb5/modules/mal/clients.c
+++ b/monetdb5/modules/mal/clients.c
@@ -479,12 +479,6 @@ CLTqueryTimeout(Client cntxt, MalBlkPtr
lng timeout_micro = ATOMIC_GET(&GDKdebug) & FORCEMITOMASK
&& qto == 1 ? 1000 : (lng) qto * 1000000;
mal_clients[idx].querytimeout = timeout_micro;
- if (timeout_micro != 1000) {
- QryCtx *qry_ctx = MT_thread_get_qry_ctx();
- if (qry_ctx) {
- qry_ctx->endtime = qry_ctx->starttime &&
timeout_micro ? qry_ctx->starttime + timeout_micro : 0;
- }
- }
}
MT_lock_unset(&mal_contextLock);
return msg;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]