SiriDB / siridb-server

SiriDB is a highly-scalable, robust and super fast time series database. Build from the ground up SiriDB uses a unique mechanism to operate without a global index and allows server resources to be added on the fly. SiriDB's unique query language includes dynamic grouping of time series for easy analysis over large amounts of time series.
https://siridb.com
MIT License
506 stars 48 forks source link

Fix siridb_tasks_dec NULL error #183

Closed joente closed 2 years ago

joente commented 2 years ago

This issue was found by @enr0n , #182

However, the suggested solution is not enough as it is important to decrement the active tasks when clearing the query. The issue can only occur on HTTP requests, as the API can be re-used for a second request. The easiest solution seems to be to give a query its own reference to siridb.