Fix SqlBagOStuff exptime uniqueness assumption
authorTim Starling <tstarling@wikimedia.org>
Sat, 10 Jun 2017 10:54:23 +0000 (20:54 +1000)
committerTim Starling <tstarling@wikimedia.org>
Sat, 10 Jun 2017 10:54:23 +0000 (20:54 +1000)
commitfb91d409d659efa27eab8c41850201e7a9f13c07
treeb11c6c12dffbd69d36956bb23480d6f2219d1b46
parentd0a0838cb76b4cf20977c4aba5fe06877d8deb58
Fix SqlBagOStuff exptime uniqueness assumption

The WMF parser cache tables have some 30000 rows with an identical, old
expiry time. So each time deleteObjectsExpiringBefore() is run, the
first batch on each table is correct, but the keys for the second batch
are selected with exptime > X, where X is shared exptime of the many old
rows.

So, use exptime >= X instead.

Change-Id: I6853f64f88f65d4529be2a42c9ed70cfa62cf653
includes/objectcache/SqlBagOStuff.php