SA Bugzilla – Bug 1869
Put in a bayes hack for 2.54 to fix small atime bug
Last modified: 2021-07-04 00:46:37 UTC
If scan count goes > 65535, token atimes wrap to 0 and the db will start having random tokens expired. To kluge this in 2.54, modify the expire routine such that if scancount is > 65535 it should reset all atimes and magic tokens to 0. This means 1 expire will be useless, but it'll keep the tokens relatively useful in place.
Created attachment 941 [details] suggested patch
OKAY: Looks okay. This code is getty freaky.
Created attachment 947 [details] new version, adds debug statement.
OKAY: looks good to me
committed to stable (head doesn't need it)