List:Commits« Previous MessageNext Message »
From:jonas Date:April 10 2006 12:14pm
Subject:bk commit into 5.1 tree (jonas:1.2303)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of jonas. When jonas 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.2303 06/04/10 14:14:28 jonas@stripped +1 -0
  ndb -
    still some valgrind varnings

  storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp
    1.121 06/04/10 14:14:25 jonas@stripped +24 -2
    still some valgrind varnings

# 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:	jonas
# Host:	perch.ndb.mysql.com
# Root:	/home/jonas/src/51-work

--- 1.120/storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp	2006-04-08 16:33:55 +02:00
+++ 1.121/storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp	2006-04-10 14:14:25 +02:00
@@ -4624,7 +4624,18 @@
   LinearSectionPtr ptr[1];
   ptr[0].p  = (Uint32*)name;
   ptr[0].sz = (strLen + 3)/4;
-
+  
+#ifndef IGNORE_VALGRIND_WARNINGS
+  if (strLen & 3)
+  {
+    Uint32 pad = 0;
+    m_buffer.clear();
+    m_buffer.append(name, strLen);
+    m_buffer.append(&pad, 4);
+    ptr[0].p = m_buffer.get_data();
+  }
+#endif
+  
   int r = dictSignal(&tSignal, ptr, 1,
 		     -1, // any node
 		     WAIT_GET_TAB_INFO_REQ,
@@ -4766,7 +4777,18 @@
   LinearSectionPtr ptr[1];
   ptr[0].p  = (Uint32*)name;
   ptr[0].sz = (strLen + 3)/4;
-
+  
+#ifndef IGNORE_VALGRIND_WARNINGS
+  if (strLen & 3)
+  {
+    Uint32 pad = 0;
+    m_buffer.clear();
+    m_buffer.append(name, strLen);
+    m_buffer.append(&pad, 4);
+    ptr[0].p = m_buffer.get_data();
+  }
+#endif
+  
   int r = dictSignal(&tSignal, ptr, 1,
 		     node,
 		     WAIT_GET_TAB_INFO_REQ,
Thread
bk commit into 5.1 tree (jonas:1.2303)jonas10 Apr