Index: trunk/phase3/includes/ExternalStoreDB.php |
— | — | @@ -120,12 +120,12 @@ |
121 | 121 | wfDebug( "ExternalStoreDB::fetchBlob cache miss on $cacheID\n" ); |
122 | 122 | |
123 | 123 | $dbr =& $this->getSlave( $cluster ); |
124 | | - $ret = $dbr->selectField( $this->getTable( $dbr ), 'blob_text', array( 'blob_id' => $id ) ); |
| 124 | + $ret = $dbr->selectField( $this->getTable( $dbr ), 'blob_text', array( 'blob_id' => $id ), __METHOD__ ); |
125 | 125 | if ( $ret === false ) { |
126 | 126 | wfDebugLog( 'ExternalStoreDB', "ExternalStoreDB::fetchBlob master fallback on $cacheID\n" ); |
127 | 127 | // Try the master |
128 | 128 | $dbw =& $this->getMaster( $cluster ); |
129 | | - $ret = $dbw->selectField( $this->getTable( $dbw ), 'blob_text', array( 'blob_id' => $id ) ); |
| 129 | + $ret = $dbw->selectField( $this->getTable( $dbw ), 'blob_text', array( 'blob_id' => $id ), __METHOD__ ); |
130 | 130 | if( $ret === false) { |
131 | 131 | wfDebugLog( 'ExternalStoreDB', "ExternalStoreDB::fetchBlob master failed to find $cacheID\n" ); |
132 | 132 | } |