Commit 9979b037 authored by unknown's avatar unknown
Browse files

NdbIndexStat.cpp, NdbIndexStat.hpp, Suma.hpp portability changes from pekka


storage/ndb/src/kernel/blocks/suma/Suma.hpp:
  Added a friend declaration to solve a HP-UX C++ scoping issue
storage/ndb/include/ndbapi/NdbIndexStat.hpp:
  Pekka added forward declarations needed by several C++ compilers
storage/ndb/src/ndbapi/NdbIndexStat.cpp:
  Get rid of an uninitialized
parent 2bddb076
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -85,6 +85,11 @@ private:
   *
   * TODO use more compact key format
   */
  struct Pointer;
  friend struct Pointer;
  struct Entry;
  friend struct Entry;
  struct Area;
  friend struct Area;
  struct Pointer {
    Uint16 m_pos;
+1 −0
Original line number Diff line number Diff line
@@ -148,6 +148,7 @@ public:
   * Subscriptions
   */
  class Table;
  friend class Table;
  typedef Ptr<Table> TablePtr;

  struct SyncRecord {
+1 −0
Original line number Diff line number Diff line
@@ -238,6 +238,7 @@ NdbIndexStat::stat_oldest(const Area& a)
{
  Uint32 i, k, m;
  bool found = false;
  m = ~(Uint32)0;     // shut up incorrect CC warning
  for (i = 0; i < a.m_entries; i++) {
    Pointer& p = a.get_pointer(i);
    Entry& e = a.get_entry(i);