Commit d94f4a42 authored by unknown's avatar unknown
Browse files

ndb -

  still some valgrind varnings


storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp:
  still some valgrind varnings
parent 7844160c
Loading
Loading
Loading
Loading
+24 −2
Original line number Diff line number Diff line
@@ -4625,6 +4625,17 @@ NdbDictInterface::get_filegroup(NdbFilegroupImpl & dst,
  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,
@@ -4767,6 +4778,17 @@ NdbDictInterface::get_file(NdbFileImpl & dst,
  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,