-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid using the deprecated GTimeVal type #4741
Avoid using the deprecated GTimeVal type #4741
Conversation
this is an alternative to #4479 |
Build FAILURE |
fdb0ac5
to
faf59e1
Compare
Build FAILURE |
0845018
to
650dbbc
Compare
Build FAILURE |
@kira-syslogng retest this please; |
650dbbc
to
0d454e8
Compare
Build FAILURE |
e4ffb76
to
78daa4b
Compare
Build FAILURE |
78daa4b
to
2547ec3
Compare
Build FAILURE |
2547ec3
to
9b989f7
Compare
Build FAILURE |
9b989f7
to
57d5a1e
Compare
Build FAILURE |
1a39fb8
to
6a87f07
Compare
This function is actually a cache and we will need this in a subsequent patch from within cache.c. Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
… code Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
We are using iv_now to track the current monotonic time which requires the initialization of ivykis from all threads. This is true for all production threads for syslog-ng, but may not be for test programs etc. This patch adds iv_init()/deinit() calls to these cases. Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
The dnscache is using time for internal purposes, which is better of using the ivykis provided iv_now which tracks CLOCK_MONOTONIC rather than REALTIME. Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Note that previously the rate-limiting was slightly more accurate as it queried an accurate time for every invocation. This is now using a cached time, but that should be fine for a rate limit. Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
6a87f07
to
bbbf8e7
Compare
@kira-syslogng do stresstest |
Kira-stress-test: Build FAILURE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve, but it would be nice to see the KIRA stress test results. It fails because of an environment error, I have written a message about it on the Discord.
While working with #4739 it turned out that the easy fix for that is to upgrade
GLIB_MIN_VERSION to 2.68.
But glib deprecated GTimeVal that is scattered around the code. This branch gets rid of GTimeVal but does not bump the glib min version to 2.68 as we will need to add further changes to be warning free on 2.68
no news needed