AdGuardHome/querylog
Simon Zolin 4efc464e98 - querylog: file rotation didn't work properly; fix entry searching algorithm
If AGH is restarted, file rotation timer is reset
which can lead to the situation when file rotation procedure is never started.

Squashed commit of the following:

commit 427ae91a512cd146ebfffad06ed24eb723cb9e7d
Merge: 067fac65 e56c746b
Author: Simon Zolin <s.zolin@adguard.com>
Date:   Wed Sep 2 18:18:46 2020 +0300

    Merge remote-tracking branch 'origin/master' into qlogs-rotate

commit 067fac65b1a87d499900f4860ffa96ed8208967c
Author: Simon Zolin <s.zolin@adguard.com>
Date:   Wed Sep 2 15:30:48 2020 +0300

    minor

commit c2059a15700e5696cb1bb5cd49129c6020d986f4
Author: Simon Zolin <s.zolin@adguard.com>
Date:   Wed Sep 2 14:53:07 2020 +0300

    improve

commit a279438eaf1cf40b820652093fb56d56784de7d8
Author: Simon Zolin <s.zolin@adguard.com>
Date:   Tue Sep 1 18:49:14 2020 +0300

    minor

commit 26ac130f139f565de39200e484b3bd4a04afcfcc
Author: Simon Zolin <s.zolin@adguard.com>
Date:   Tue Sep 1 13:54:27 2020 +0300

    rename

commit 0fad7b88dbeadcddd4d77536a18da72f3203ea80
Author: Simon Zolin <s.zolin@adguard.com>
Date:   Tue Sep 1 13:05:36 2020 +0300

    + TestQLogSeek

commit fa6afc6d4dc592b1fef67c4a069ea50fae600a58
Author: Simon Zolin <s.zolin@adguard.com>
Date:   Tue Sep 1 13:05:34 2020 +0300

    minor

commit 11e6ab9131e5c37467e8530a2db95a82bbb0603b
Author: Simon Zolin <s.zolin@adguard.com>
Date:   Mon Aug 31 19:45:47 2020 +0300

    fix tests

commit 7cbb89948df0e69b1bae8f8cde1879b5b1c4b1d6
Author: Simon Zolin <s.zolin@adguard.com>
Date:   Mon Aug 31 19:29:43 2020 +0300

    - querylog: fix entry searching algorithm

commit 745d44863d88b321bd7001f24a68620f7ef05819
Author: Simon Zolin <s.zolin@adguard.com>
Date:   Mon Aug 31 18:34:14 2020 +0300

    - querylog: file rotation didn't work properly

    If AGH is restarted, file rotation timer is reset
     which can lead to the situation when file rotation procedure is never started.
2020-09-02 19:42:26 +03:00
..
decode.go + client_proto 2020-05-29 11:15:22 +03:00
decode_test.go *(querylog): decode methods to a new file 2020-05-26 16:24:31 +03:00
json.go Merge: + new query logs API 2020-06-18 00:23:52 +03:00
qlog.go + client_proto 2020-05-29 11:15:22 +03:00
qlog_file.go - querylog: file rotation didn't work properly; fix entry searching algorithm 2020-09-02 19:42:26 +03:00
qlog_file_test.go - querylog: file rotation didn't work properly; fix entry searching algorithm 2020-09-02 19:42:26 +03:00
qlog_http.go Pull request 743: + client: Query Logs Infinite Scroll 2020-09-01 16:30:30 +03:00
qlog_reader.go -(dnsforward): start using lastProbeLineIdx in the Seek 2020-02-21 12:57:12 +03:00
qlog_reader_test.go *(dnsforward): replaced old search with the new one 2020-02-21 01:07:30 +03:00
qlog_test.go * querylog: case-insensitive search by domain name 2020-07-03 12:21:09 +03:00
querylog.go + "dot" 2020-05-29 11:46:37 +03:00
querylog_file.go - querylog: file rotation didn't work properly; fix entry searching algorithm 2020-09-02 19:42:26 +03:00
querylog_search.go If there are no more older entries, `"oldest":""` is returned. 2020-06-16 12:10:17 +03:00
search_criteria.go * querylog: case-insensitive search by domain name 2020-07-03 12:21:09 +03:00
search_params.go *(querylog): added offset/limit parameters 2020-05-26 15:37:37 +03:00