SqlBagOStuff: fix percentage in deleteObjectsExpiringBefore()
authorSergio Santoro <santoro.srg@gmail.com>
Thu, 16 Oct 2014 18:43:38 +0000 (20:43 +0200)
committerSergio Santoro <santoro.srg@gmail.com>
Thu, 16 Oct 2014 18:43:38 +0000 (20:43 +0200)
commit4c79d2e7e44cfd8242d0e2e2dea92a2cf74d8628
tree39f3bd63553636426495db8af09d63a2b3bbaaeb
parent05b7a51966709d42beb5f786378bb8af4ca7a72f
SqlBagOStuff: fix percentage in deleteObjectsExpiringBefore()

Partial deletion percentage progess was computed using
$remainingSeconds. This is incorrect since $remainingSeconds
is going to *decrease* ( instead of increase ) while the
process continues.
The correct implementation uses 'processed seconds' instead.

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