Index: trunk/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -210,13 +210,14 @@ |
211 | 211 | /** |
212 | 212 | * Quickie protection against huuuuuuuuge batch inserts |
213 | 213 | */ |
214 | | - protected function insertChunks( $db, $table, $data, $method, $options = array() ) { |
| 214 | + protected function insertChunks( $db, $table, $data, $method = __METHOD__, $options = array() ) { |
215 | 215 | $chunkSize = 100; |
216 | 216 | for ( $i = 0; $i < count( $data ); $i += $chunkSize ) { |
217 | | - $db->insert( 'code_paths', |
| 217 | + $db->insert( $table, |
218 | 218 | array_slice( $data, $i, $chunkSize ), |
219 | | - __METHOD__, |
220 | | - array( 'IGNORE' ) ); |
| 219 | + $method, |
| 220 | + $options |
| 221 | + ); |
221 | 222 | } |
222 | 223 | } |
223 | 224 | |