Files
discourse/lib
Daniel Waterworth 7c7098c700 FIX: Off-by-one error setting the distributed mutex key to expire
Accounting for fractional seconds, a distributed mutex can be held for
almost a full second longer than its validity.

For example: if we grab the lock at 10.5 seconds passed the epoch with a
validity of 5 seconds, the lock would be released at 16 seconds passed
the epoch. However, in this case assuming that all other processing
takes a negligible amount of time, the key would be expired at 15.5
seconds passed the epoch.

Using expireat, the key is now expired exactly when the lock is released.
2020-02-03 14:54:50 +00:00
..
2020-01-15 11:27:12 +01:00
2019-10-21 12:08:20 +01:00
2020-01-15 11:21:58 +01:00
2014-03-11 03:18:57 -04:00
2019-04-29 16:41:35 +08:00
2019-05-22 17:39:44 +03:00
2020-01-21 17:05:30 -05:00
2019-10-21 12:08:20 +01:00