Merge "UploadStash us_props fix for Postgres"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 21 Feb 2014 14:40:14 +0000 (14:40 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 21 Feb 2014 14:40:14 +0000 (14:40 +0000)
1  2 
includes/upload/UploadStash.php

@@@ -260,7 -260,7 +260,7 @@@ class UploadStash 
                        'us_key' => $key,
                        'us_orig_path' => $path,
                        'us_path' => $stashPath, // virtual URL
 -                      'us_props' => serialize( $fileProps ),
 +                      'us_props' => $dbw->encodeBlob( serialize( $fileProps ) ),
                        'us_size' => $fileProps['size'],
                        'us_sha1' => $fileProps['sha1'],
                        'us_mime' => $fileProps['mime'],
                }
  
                $this->fileMetadata[$key] = (array)$row;
+               $this->fileMetadata[$key]['us_props'] = $dbr->decodeBlob( $row->us_props );
  
                return true;
        }