- add comment to document us_chunk_inx in sql file
authorJan Gerber <j@users.mediawiki.org>
Thu, 22 Dec 2011 13:18:49 +0000 (13:18 +0000)
committerJan Gerber <j@users.mediawiki.org>
Thu, 22 Dec 2011 13:18:49 +0000 (13:18 +0000)
- fix chunk upload to work with recent filerepo changes
Follow up r104687

includes/upload/UploadFromChunks.php
maintenance/tables.sql

index 3a5f809..1bc7e85 100644 (file)
@@ -56,7 +56,7 @@ class UploadFromChunks extends UploadFromFile {
                $this->mFileKey = $this->mLocalFile->getFileKey();
 
                // Output a copy of this first to chunk 0 location:
-               $status = $this->outputChunk( $this->mLocalFile->getPath() );
+               $status = $this->outputChunk( $this->mLocalFile->getLocalRefPath() );
                
                // Update db table to reflect initial "chunk" state 
                $this->updateChunkStatus();
index 1900bbb..3655018 100644 (file)
@@ -966,7 +966,8 @@ CREATE TABLE /*_*/uploadstash (
        us_timestamp varbinary(14) not null,
 
        us_status varchar(50) not null,
-       
+
+       -- chunk counter starts at 0, current offset is stored in us_size
        us_chunk_inx int unsigned NULL,
 
        -- file properties from File::getPropsFromPath.  these may prove unnecessary.