stable

Clone or download

Read-only

LFS objects should at most one time when computing the occupied size

Currently, one object can be counted multiple times if there are multiples valid authorizations (aka multiple uploads ongoing) for this object. Only one ongoing authorization should be counted per repository and per object. If different sizes has been announced by Git LFS clients, only the biggest size should be added to the occupied size. This contribution also make sure the collection time is properly collected. This is part of story #12327: set limits on git-lfs file usage Change-Id: I763c1424cdc112b7b64954bc323d5368feba1f76

Modified Files

Name
M plugins/gitlfs/include/Authorization/Action/ActionAuthorizationDAO.php +0 −22 Go to diff View file
M plugins/gitlfs/include/LFSObject/LFSObjectDAO.php +0 −12 Go to diff View file
M plugins/gitlfs/include/Statistics/Collector.php +12 −96 Go to diff View file
A plugins/gitlfs/include/Statistics/LFSStatisticsDAO.php +56 −0 Go to diff View file
M plugins/gitlfs/include/gitlfsPlugin.class.php +7 −9 Go to diff View file
M plugins/gitlfs/phpunit/Statistics/CollectorTest.php +12 −74 Go to diff View file