MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:rsomla Date:October 30 2007 5:17pm
Subject:bk commit into 5.2 tree (rafal:1.2610) BUG#31963
View as plain text  
Below is the list of changes that have just been committed into a local
5.2 repository of rafal. When rafal does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-10-30 18:17:19+01:00, rafal@quant.(none) +1 -0
  BUG#31963 (memory leaks in online backup code).
  
  This patch adds a call to free() method of native backup engine, so that
  it can free resources.

  sql/backup/archive.h@stripped, 2007-10-30 18:17:13+01:00, rafal@quant.(none) +8 -0
    Call free() method of backup engine.

diff -Nrup a/sql/backup/archive.h b/sql/backup/archive.h
--- a/sql/backup/archive.h	2007-08-20 10:37:06 +02:00
+++ b/sql/backup/archive.h	2007-10-30 18:17:13 +01:00
@@ -452,6 +452,14 @@ class Native_image: public Image_info
     }
   }
 
+  ~Native_image()
+  {
+    if (m_be)
+      m_be->free();
+      
+    m_be= NULL;
+  }
+
   bool is_valid()
   { return m_be != NULL; }
 
Thread
bk commit into 5.2 tree (rafal:1.2610) BUG#31963rsomla30 Oct