Remove unused reset_timeout/access_timeout from AsynchronousInsertQueue

This commit is contained in:
Azat Khuzhin 2021-09-26 22:18:38 +03:00
parent 5a7f30171a
commit c495297e65

View File

@ -106,13 +106,10 @@ private:
QueryIdToEntry currently_processing_queries; QueryIdToEntry currently_processing_queries;
/// Logic and events behind queue are as follows: /// Logic and events behind queue are as follows:
/// - reset_timeout: if queue is empty for some time, then we delete the queue and free all associated resources, e.g. tables.
/// - busy_timeout: if queue is active for too long and there are a lot of rapid inserts, then we dump the data, so it doesn't /// - busy_timeout: if queue is active for too long and there are a lot of rapid inserts, then we dump the data, so it doesn't
/// grow for a long period of time and users will be able to select new data in deterministic manner. /// grow for a long period of time and users will be able to select new data in deterministic manner.
/// - stale_timeout: if queue is stale for too long, then we dump the data too, so that users will be able to select the last /// - stale_timeout: if queue is stale for too long, then we dump the data too, so that users will be able to select the last
/// piece of inserted data. /// piece of inserted data.
/// - access_timeout: also we have to check if user still has access to the tables periodically, and if the access is lost, then
/// we dump pending data and delete queue immediately.
/// - max_data_size: if the maximum size of data is reached, then again we dump the data. /// - max_data_size: if the maximum size of data is reached, then again we dump the data.
const size_t max_data_size; /// in bytes const size_t max_data_size; /// in bytes