zodb / relstorage

A backend for ZODB that stores pickles in a relational database.
Other
54 stars 46 forks source link

Workaround bug in MySQL that caused TIDs to suddenly jump. #328

Closed jamadden closed 5 years ago

jamadden commented 5 years ago

MySQL incorrectly rounds the 'minute' value of a timestamp up when the 'seconds' value is greater than 59.5, but the spec says minute should be whole minutes, not rounded. Thus, TIDs generated in the last half second of a minute would suddenly jump ahead by 4,266,903,756 integers (a full minute).