List:Commits« Previous MessageNext Message »
From:Jorgen Loland Date:September 2 2008 7:45am
Subject:bzr push into mysql-6.0-backup branch (jorgen.loland:2688) Bug#38769
View as plain text  
 2688 Jorgen Loland	2008-09-02
      Bug#38769 - Backup: write table data does not stop iterating when all drivers are handled
            
      Fix: stop iteration that adds drivers to the scheduler when there are no more drivers in Image_info.m_snap
modified:
  sql/backup/data_backup.cc

=== modified file 'sql/backup/data_backup.cc'
--- a/sql/backup/data_backup.cc	2008-08-27 17:30:49 +0000
+++ b/sql/backup/data_backup.cc	2008-09-02 07:44:28 +0000
@@ -450,7 +450,7 @@ int write_table_data(THD* thd, Backup_in
 
   // add unknown "at end" drivers to scheduler, rest to inactive list
 
-  for (uint n=0; n < 256; ++n)
+  for (uint n=0; n < info.snap_count(); ++n)
   {
     Snapshot_info *i= info.m_snap[n];
 

Thread
bzr push into mysql-6.0-backup branch (jorgen.loland:2688) Bug#38769Jorgen Loland2 Sep