mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
Our configuration already has the default values for for permission cache parameters. Therefore if user decides to give some bad parameters we'd rather fail the load and inform him/her about the bad parameters instead of trying to silently "fix" them. In addition the original code wasn't passing the parameters correctly: it switched the "expiry" and "refresh" parameters in the utils::loaded_cache constructor. Add to this that the original code was doing really strange things in the permission_cache::expiry(cfg) method. Signed-off-by: Vlad Zolotarov <vladz@scylladb.com>