e4109fe523db23973c6fbfccf370b5dd3d754372 |
|
06-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
indexer: Don't send more requests directly from worker status callback
This causes assert-crashes when workers disconnect while having multiple
requests:
indexer: Error: Indexer worker disconnected, discarding 2 requests for user@domain
indexer: Panic: file indexer.c: line 69 (queue_try_send_more): assertion failed: (worker_connection_is_connected(conn)) |
218095792e0af7c1609da4901cfb60e78139595e |
|
03-Jun-2015 |
Timo Sirainen <tss@iki.fi> |
indexer: Improved handling multiple indexing requests to the same mailbox.
If a request arrives for a mailbox that we were already indexes, the
previous code simply sent the indexing request to the existing worker
process. This could have caused a lot of requests to be buffered to the same
mailbox if the indexing took a long time, which could have taken a while to
process even though they weren't really doing anything indexing work.
The new code instead just keeps track in memory that when the earlier
indexing is finished, it's done again once to finish any pending changes. |