"NeilK" posted a comment on MediaWiki.r104687. URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/104687#c27791
Commit summary for MediaWiki.r104687: Use database to track uploaded chunks and concatenate at the end. with i18n documentation dont break phpunit follow up r93720 NeilK's comment: This could be solved by just recording what the chunks' claimed offset. This is monotonically increasing so it's the same as an index, for the purposes of storing temp files. Then, after every chunk is received, you get the full list of chunks, and then check that each chunk has a matching chunk that starts one byte later (could be done with a self-join), and that there is one that starts with 0, and one that ends with the claimed filesize. _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
