Skip to content

Commit 4db6c67

Browse files
author
jonas oreland
committed
ndb - merge 71 to 72
2 parents 30ff885 + 70f9de5 commit 4db6c67

29 files changed

+886
-637
lines changed

storage/ndb/include/debugger/SignalLoggerManager.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@
2828

2929
#include <kernel_types.h>
3030
#include <BlockNumbers.h>
31-
#include <TransporterDefinitions.hpp>
3231
#include <RefConvert.hpp>
32+
#include <NdbMutex.h>
33+
34+
struct SignalHeader;
3335

3436
class SignalLoggerManager
3537
{

storage/ndb/include/kernel/signaldata/SignalDroppedRep.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
#include "SignalData.hpp"
2323

24-
class SignalDroppedRep {
25-
24+
struct SignalDroppedRep
25+
{
2626
/**
2727
* Receiver(s)
2828
*/
@@ -37,8 +37,7 @@ class SignalDroppedRep {
3737
friend class TransporterCallbackKernel;
3838

3939
friend bool printSIGNAL_DROPPED_REP(FILE *, const Uint32 *, Uint32, Uint16);
40-
public:
41-
private:
40+
4241
Uint32 originalGsn;
4342
Uint32 originalLength;
4443
Uint32 originalSectionCount;

storage/ndb/include/ndb_types.h.in

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,76 @@ typedef unsigned int UintR;
9696

9797
#include "ndb_constants.h"
9898

99+
struct LinearSectionPtr
100+
{
101+
Uint32 sz;
102+
Uint32 * p;
103+
};
104+
105+
struct SegmentedSectionPtrPOD
106+
{
107+
Uint32 sz;
108+
Uint32 i;
109+
struct SectionSegment * p;
110+
111+
#ifdef __cplusplus
112+
void setNull() { p = 0;}
113+
bool isNull() const { return p == 0;}
114+
inline SegmentedSectionPtrPOD& assign(struct SegmentedSectionPtr&);
115+
#endif
116+
};
117+
118+
struct SegmentedSectionPtr
119+
{
120+
Uint32 sz;
121+
Uint32 i;
122+
struct SectionSegment * p;
123+
124+
#ifdef __cplusplus
125+
SegmentedSectionPtr() {}
126+
SegmentedSectionPtr(Uint32 sz_arg, Uint32 i_arg,
127+
struct SectionSegment *p_arg)
128+
:sz(sz_arg), i(i_arg), p(p_arg)
129+
{}
130+
SegmentedSectionPtr(const SegmentedSectionPtrPOD & src)
131+
:sz(src.sz), i(src.i), p(src.p)
132+
{}
133+
134+
void setNull() { p = 0;}
135+
bool isNull() const { return p == 0;}
136+
#endif
137+
};
138+
139+
#ifdef __cplusplus
140+
inline
141+
SegmentedSectionPtrPOD&
142+
SegmentedSectionPtrPOD::assign(struct SegmentedSectionPtr& src)
143+
{
144+
this->i = src.i;
145+
this->p = src.p;
146+
this->sz = src.sz;
147+
return *this;
148+
}
149+
#endif
150+
151+
/* Abstract interface for iterating over
152+
* words in a section
153+
*/
154+
#ifdef __cplusplus
155+
struct GenericSectionIterator
156+
{
157+
virtual ~GenericSectionIterator() {};
158+
virtual void reset()=0;
159+
virtual const Uint32* getNextWords(Uint32& sz)=0;
160+
};
161+
#else
162+
struct GenericSectionIterator;
163+
#endif
164+
165+
struct GenericSectionPtr
166+
{
167+
Uint32 sz;
168+
struct GenericSectionIterator* sectionIter;
169+
};
170+
99171
#endif

0 commit comments

Comments
 (0)