]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
dict-client: Fix logging how much time was spent in other ioloops in slow lookup...
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 24 Oct 2016 09:17:44 +0000 (12:17 +0300)
committerGitLab <gitlab@git.dovecot.net>
Mon, 24 Oct 2016 11:17:23 +0000 (14:17 +0300)
commite55b5cf82e6d109c658e0b5049cae1ba8edd3b91
tree5400bda78c767fe4e8b6331403c3fa8c18296a44
parentd327ea02dc39399e8b231d0c833ed94c3be20bce
dict-client: Fix logging how much time was spent in other ioloops in slow lookup warnings.

The warning's idea is to show why the lookup could have been slow. We
differentiate between time spent in dict_wait() waiting only for the
dict result and time spent in other ioloops waiting for potentially other
things as well (and time spent waiting for locks during this time).

The previous code didn't work right when multiple ioloops were used, which
happened sometimes.

Also changed %u to %d just in case some calculation is wrong. It's nicer to
get a slightly negative value rather than a huge positive one.
src/lib-dict/dict-client.c