? 556842.patch
? 876762-42_taxonomy_update_machine.patch
? 876762.patch
? 887288.patch
? 887288.patch.1
? annoyed.patch
? doesntwork.patch
? doesntworkeither.patch
? drupal_http_request.patch
? poor_block_menu.patch
? transactions.patch
? transactions_11.patch
? sites/default/files
? sites/default/settings.php
Index: modules/simpletest/tests/upgrade/drupal-6.upload.database.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/simpletest/tests/upgrade/drupal-6.upload.database.php,v
retrieving revision 1.1
diff -u -p -r1.1 drupal-6.upload.database.php
--- modules/simpletest/tests/upgrade/drupal-6.upload.database.php	3 Oct 2010 23:19:52 -0000	1.1
+++ modules/simpletest/tests/upgrade/drupal-6.upload.database.php	11 Nov 2010 07:21:54 -0000
@@ -22,16 +22,6 @@ db_insert('files')->fields(array(
   'timestamp' => '1285700240',
 ))
 ->values(array(
-  'fid' => '2',
-  'uid' => '1',
-  'filename' => 'powered-blue-80x15.png',
-  'filepath' => 'sites/default/files/powered-blue-80x15_0.png',
-  'filemime' => 'image/png',
-  'filesize' => '1011',
-  'status' => '1',
-  'timestamp' => '1285700317',
-))
-->values(array(
   'fid' => '3',
   'uid' => '1',
   'filename' => 'powered-blue-88x31.png',
@@ -356,3 +346,12 @@ db_insert('upload')->fields(array(
   'weight' => '-1',
 ))
 ->execute();
+db_insert('variable')->fields(array(
+  'name',
+  'value',
+))
+->values(array(
+  'name' => 'upload_update_batch_size',
+  'value' => 's:1:"2";',
+))
+->execute();
Index: modules/system/system.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.install,v
retrieving revision 1.520
diff -u -p -r1.520 system.install
--- modules/system/system.install	20 Oct 2010 00:47:44 -0000	1.520
+++ modules/system/system.install	11 Nov 2010 07:21:54 -0000
@@ -2777,7 +2777,7 @@ function system_update_7061(&$sandbox) {
 
   // Determine vids for this batch.
   // Process all files attached to a given revision during the same batch.
-  $limit = 100;
+  $limit = variable_get('upload_update_batch_size', 100);
   $vids = db_query_range('SELECT vid FROM {system_update_7061} WHERE vid > :lastvid ORDER BY vid', 0, $limit, array(':lastvid' => $sandbox['last_vid_processed']))
     ->fetchCol();
 
