BUG#18594 ndb_restore log boken in 5.1
- corrected log read after fragment id addition
This commit is contained in:
parent
6be87a41a2
commit
2bc490d42b
@ -144,7 +144,7 @@ struct BackupFormat {
|
|||||||
// If TriggerEvent & 0x10000 == true then GCI is right after data
|
// If TriggerEvent & 0x10000 == true then GCI is right after data
|
||||||
Uint32 TriggerEvent;
|
Uint32 TriggerEvent;
|
||||||
Uint32 FragId;
|
Uint32 FragId;
|
||||||
Uint32 Data[1]; // Len = Length - 2
|
Uint32 Data[1]; // Len = Length - 3
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1036,7 +1036,7 @@ RestoreLogIterator::getNextLogEntry(int & res, bool *alloc_flag) {
|
|||||||
m_logEntry.clear();
|
m_logEntry.clear();
|
||||||
|
|
||||||
AttributeHeader * ah = (AttributeHeader *)&logE->Data[0];
|
AttributeHeader * ah = (AttributeHeader *)&logE->Data[0];
|
||||||
AttributeHeader *end = (AttributeHeader *)&logE->Data[len - 2];
|
AttributeHeader *end = (AttributeHeader *)&logE->Data[len - 3];
|
||||||
AttributeS * attr;
|
AttributeS * attr;
|
||||||
m_logEntry.m_frag_id = ntohl(logE->FragId);
|
m_logEntry.m_frag_id = ntohl(logE->FragId);
|
||||||
while(ah < end){
|
while(ah < end){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user