Commit d6719293 authored by unknown's avatar unknown

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 be1ede92
......@@ -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;
......
......@@ -148,6 +148,7 @@ public:
* Subscriptions
*/
class Table;
friend class Table;
typedef Ptr<Table> TablePtr;
struct SyncRecord {
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment