mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 09:04:29 +02:00
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.1
into mysql.com:/home/marty/MySQL/mysql-5.1 storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp: Auto merged storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp: Auto merged storage/ndb/src/ndbapi/NdbScanOperation.cpp: Auto merged storage/ndb/src/ndbapi/ndberror.c: Auto merged
This commit is contained in:
commit
334453f977
33 changed files with 2870 additions and 1634 deletions
|
|
@ -67,6 +67,9 @@ private:
|
|||
|
||||
static Uint32 getNRScanFlag(const Uint32 & requestInfo);
|
||||
static void setNRScanFlag(Uint32 & requestInfo, Uint32 nr);
|
||||
|
||||
static Uint32 getLcpScanFlag(const Uint32 & requestInfo);
|
||||
static void setLcpScanFlag(Uint32 & requestInfo, Uint32 nr);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -77,6 +80,7 @@ private:
|
|||
* z = Descending (TUX) - 1 Bit 6
|
||||
* d = No disk scan - 1 Bit 7
|
||||
* n = Node recovery scan - 1 Bit 8
|
||||
* c = LCP scan - 1 Bit 9
|
||||
*
|
||||
* 1111111111222222222233
|
||||
* 01234567890123456789012345678901
|
||||
|
|
@ -88,6 +92,7 @@ private:
|
|||
#define AS_DESCENDING_SHIFT (6)
|
||||
#define AS_NO_DISK_SCAN (7)
|
||||
#define AS_NR_SCAN (8)
|
||||
#define AS_LCP_SCAN (9)
|
||||
|
||||
inline
|
||||
Uint32
|
||||
|
|
@ -154,6 +159,19 @@ AccScanReq::setNRScanFlag(UintR & requestInfo, UintR val){
|
|||
requestInfo |= (val << AS_NR_SCAN);
|
||||
}
|
||||
|
||||
inline
|
||||
Uint32
|
||||
AccScanReq::getLcpScanFlag(const Uint32 & requestInfo){
|
||||
return (requestInfo >> AS_LCP_SCAN) & 1;
|
||||
}
|
||||
|
||||
inline
|
||||
void
|
||||
AccScanReq::setLcpScanFlag(UintR & requestInfo, UintR val){
|
||||
ASSERT_BOOL(val, "AccScanReq::setNoDiskScanFlag");
|
||||
requestInfo |= (val << AS_LCP_SCAN);
|
||||
}
|
||||
|
||||
class AccScanConf {
|
||||
/**
|
||||
* Sender(s)
|
||||
|
|
|
|||
|
|
@ -25,11 +25,12 @@
|
|||
*/
|
||||
class AllocNodeIdReq {
|
||||
public:
|
||||
STATIC_CONST( SignalLength = 3 );
|
||||
STATIC_CONST( SignalLength = 4 );
|
||||
|
||||
Uint32 senderRef;
|
||||
Uint32 senderData;
|
||||
Uint32 nodeId;
|
||||
Uint32 nodeType;
|
||||
};
|
||||
|
||||
class AllocNodeIdConf {
|
||||
|
|
@ -53,7 +54,8 @@ public:
|
|||
NotMaster = 702,
|
||||
NodeReserved = 1701,
|
||||
NodeConnected = 1702,
|
||||
NodeFailureHandlingNotCompleted = 1703
|
||||
NodeFailureHandlingNotCompleted = 1703,
|
||||
NodeTypeMismatch = 1704
|
||||
};
|
||||
|
||||
Uint32 senderRef;
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ public:
|
|||
TuxSetLogFlags = 12002,
|
||||
TuxMetaDataJunk = 12009,
|
||||
|
||||
DumpTsman = 9000,
|
||||
DumpTsman = 9002,
|
||||
DumpLgman = 10000,
|
||||
DumpPgman = 11000
|
||||
};
|
||||
|
|
|
|||
|
|
@ -61,7 +61,8 @@ public:
|
|||
static Uint32 getAttrLen(const Uint32 & requestInfo);
|
||||
static Uint32 getScanPrio(const Uint32 & requestInfo);
|
||||
static Uint32 getNoDiskFlag(const Uint32 & requestInfo);
|
||||
|
||||
static Uint32 getLcpScanFlag(const Uint32 & requestInfo);
|
||||
|
||||
static void setLockMode(Uint32 & requestInfo, Uint32 lockMode);
|
||||
static void setHoldLockFlag(Uint32 & requestInfo, Uint32 holdLock);
|
||||
static void setKeyinfoFlag(Uint32 & requestInfo, Uint32 keyinfo);
|
||||
|
|
@ -72,6 +73,7 @@ public:
|
|||
static void setAttrLen(Uint32 & requestInfo, Uint32 attrLen);
|
||||
static void setScanPrio(Uint32& requestInfo, Uint32 prio);
|
||||
static void setNoDiskFlag(Uint32& requestInfo, Uint32 val);
|
||||
static void setLcpScanFlag(Uint32 & requestInfo, Uint32 val);
|
||||
};
|
||||
|
||||
class KeyInfo20 {
|
||||
|
|
@ -198,6 +200,7 @@ public:
|
|||
* Request Info
|
||||
*
|
||||
* a = Length of attrinfo - 16 Bits (16-31)
|
||||
* c = LCP scan - 1 Bit 3
|
||||
* d = No disk - 1 Bit 4
|
||||
* l = Lock Mode - 1 Bit 5
|
||||
* h = Hold lock - 1 Bit 7
|
||||
|
|
@ -205,7 +208,7 @@ public:
|
|||
* r = read committed - 1 Bit 9
|
||||
* x = range scan - 1 Bit 6
|
||||
* z = descending - 1 Bit 10
|
||||
* t = tup scan -1 Bit 11 (implies x=z=0)
|
||||
* t = tup scan - 1 Bit 11 (implies x=z=0)
|
||||
* p = Scan prio - 4 Bits (12-15) -> max 15
|
||||
*
|
||||
* 1111111111222222222233
|
||||
|
|
@ -222,6 +225,7 @@ public:
|
|||
#define SF_RANGE_SCAN_SHIFT (6)
|
||||
#define SF_DESCENDING_SHIFT (10)
|
||||
#define SF_TUP_SCAN_SHIFT (11)
|
||||
#define SF_LCP_SCAN_SHIFT (3)
|
||||
|
||||
#define SF_ATTR_LEN_SHIFT (16)
|
||||
#define SF_ATTR_LEN_MASK (65535)
|
||||
|
|
@ -359,6 +363,19 @@ ScanFragReq::setNoDiskFlag(UintR & requestInfo, UintR val){
|
|||
requestInfo |= (val << SF_NO_DISK_SHIFT);
|
||||
}
|
||||
|
||||
inline
|
||||
Uint32
|
||||
ScanFragReq::getLcpScanFlag(const Uint32 & requestInfo){
|
||||
return (requestInfo >> SF_LCP_SCAN_SHIFT) & 1;
|
||||
}
|
||||
|
||||
inline
|
||||
void
|
||||
ScanFragReq::setLcpScanFlag(UintR & requestInfo, UintR val){
|
||||
ASSERT_BOOL(val, "ScanFragReq::setLcpScanFlag");
|
||||
requestInfo |= (val << SF_LCP_SCAN_SHIFT);
|
||||
}
|
||||
|
||||
inline
|
||||
Uint32
|
||||
KeyInfo20::setScanInfo(Uint32 opNo, Uint32 scanNo){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue