List:Commits« Previous MessageNext Message »
From:tomas Date:May 8 2006 2:58pm
Subject:bk commit into 5.1 tree (tomas:1.2020)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of tomas. When tomas 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
  1.2020 06/05/08 14:58:03 tomas@stripped +1 -0
  removed leak of ndb event operations on delete of ndb object

  storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp
    1.25 06/05/08 14:57:46 tomas@stripped +7 -0
    removed leak of ndb event operations on delete of ndb object

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	tomas
# Host:	poseidon.ndb.mysql.com
# Root:	/home/tomas/wl2325-alcatel

--- 1.24/storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp	2005-11-01 10:46:50 +01:00
+++ 1.25/storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp	2006-05-08 14:57:46 +02:00
@@ -581,6 +581,13 @@
 NdbEventBuffer::~NdbEventBuffer()
 {
   // todo lock?  what if receive thread writes here?
+  NdbEventOperationImpl* op= m_dropped_ev_op;  
+  while ((op = m_dropped_ev_op))
+  {
+    m_dropped_ev_op = m_dropped_ev_op->m_next;
+    delete op->m_facade;
+  }
+
   for (unsigned j= 0; j < m_allocated_data.size(); j++)
   {
     unsigned sz= m_allocated_data[j]->sz;
Thread
bk commit into 5.1 tree (tomas:1.2020)tomas8 May