Bug 1869 - Put in a bayes hack for 2.54 to fix small atime bug
Summary: Put in a bayes hack for 2.54 to fix small atime bug
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Learner (show other bugs)
Version: 2.53
Hardware: Other other
: P1 blocker
Target Milestone: 2.54
Assignee: Theo Van Dinter
URL:
Whiteboard:
Keywords: backport
Depends on:
Blocks:
 
Reported: 2003-05-07 14:54 UTC by Theo Van Dinter
Modified: 2021-07-04 00:46 UTC (History)
2 users (show)



Attachment Type Modified Status Actions Submitter/CLA Status
suggested patch patch None Theo Van Dinter [HasCLA]
new version, adds debug statement. patch None Theo Van Dinter [HasCLA]

Note You need to log in before you can comment on or make changes to this bug.
Description Theo Van Dinter 2003-05-07 14:54:21 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.
Comment 1 Theo Van Dinter 2003-05-07 19:50:14 UTC
Created attachment 941 [details]
suggested patch
Comment 2 Daniel Quinlan 2003-05-08 11:39:45 UTC
OKAY: Looks okay.  This code is getty freaky.
Comment 3 Theo Van Dinter 2003-05-08 12:43:25 UTC
Created attachment 947 [details]
new version, adds debug statement.
Comment 4 Justin Mason 2003-05-08 14:44:53 UTC
OKAY: looks good to me
Comment 5 Theo Van Dinter 2003-05-08 14:47:59 UTC
committed to stable (head doesn't need it)