You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means that whenever the function is called, there is no hint to the caller that the application of the configuration has failed. I propose to return the value of not-applied parameters instead, so that:
0 means everything is applied
-n means n settings are not applied but the configuration has been reloaded
+x means reload errors
This can be useful also in the work I'm trying in #333 because I'm using the same function transfer_configuration to issue a parameter change on the fly.
The text was updated successfully, but these errors were encountered:
…n reload.
The internal function `transfer_configuration` now returns a negative
value in the case of unchanged settings: such value counts the number
of parameters that has remained untouched, for example because they
require a restart.
The idea is that there are parameter that cannot be changed on the fly
and that do not prevent the configuration to be swapped, but it could
be interesting to take the count of unchanged configuration settings.
Closeagroal#339
The function
transfer_configuration
returns always success even when there are parameters that need a restart. As an example: https://github.com/agroal/pgagroal/blob/master/src/libpgagroal/configuration.c#L2481.This means that whenever the function is called, there is no hint to the caller that the application of the configuration has failed. I propose to return the value of not-applied parameters instead, so that:
This can be useful also in the work I'm trying in #333 because I'm using the same function
transfer_configuration
to issue a parameter change on the fly.The text was updated successfully, but these errors were encountered: