mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge
mysql-test/mysql-test-run.sh: Auto merged ndb/src/ndbapi/Ndbif.cpp: Auto merged ndb/src/common/mgmcommon/ConfigInfo.cpp: SCCS merged
This commit is contained in:
@ -84,7 +84,7 @@ extern const GlobalSignalNumber NO_OF_SIGNAL_NAMES;
|
||||
|
||||
#define GSN_SCAN_NEXTREQ 28
|
||||
#define GSN_SCAN_TABCONF 29
|
||||
#define GSN_SCAN_TABINFO 30
|
||||
// 30 unused
|
||||
#define GSN_SCAN_TABREF 31
|
||||
#define GSN_SCAN_TABREQ 32
|
||||
#define GSN_KEYINFO20 33
|
||||
|
@ -271,76 +271,6 @@ private:
|
||||
#define STATUS_SHIFT (8)
|
||||
#define STATUS_MASK (0xFF)
|
||||
|
||||
/**
|
||||
*
|
||||
* SENDER: Dbtc, API
|
||||
* RECIVER: API, Dbtc
|
||||
*/
|
||||
class ScanTabInfo {
|
||||
/**
|
||||
* Reciver(s) and Sender(s)
|
||||
*/
|
||||
friend class NdbConnection;
|
||||
friend class Dbtc;
|
||||
|
||||
/**
|
||||
* For printing
|
||||
*/
|
||||
friend bool printSCANTABINFO(FILE * output, const Uint32 * theData, Uint32 len, Uint16 receiverBlockNo);
|
||||
|
||||
public:
|
||||
/**
|
||||
* Length of signal
|
||||
*/
|
||||
STATIC_CONST( SignalLength = 17 );
|
||||
|
||||
private:
|
||||
|
||||
// Type definitions
|
||||
|
||||
/**
|
||||
* DATA VARIABLES
|
||||
*/
|
||||
UintR apiConnectPtr; // DATA 0
|
||||
UintR operLenAndIdx[16]; // DATA 1-16
|
||||
|
||||
/**
|
||||
* Get:ers for operLenAndIdx
|
||||
*/
|
||||
static Uint32 getLen(const UintR & operLenAndIdx);
|
||||
static Uint8 getIdx(const UintR & operLenAndIdx);
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Operation length and index
|
||||
*
|
||||
l = Length of operation - 24 Bits -> Max 16777215 (Bit 0-24)
|
||||
i = Index of operation - 7 Bits -> Max 255 (Bit 25-32)
|
||||
|
||||
1111111111222222222233
|
||||
01234567890123456789012345678901
|
||||
llllllllllllllllllllllllliiiiiii
|
||||
*/
|
||||
|
||||
#define LENGTH_SHIFT (0)
|
||||
#define LENGTH_MASK (0xFFFFFF)
|
||||
|
||||
#define INDEX_SHIFT (24)
|
||||
#define INDEX_MASK (0xFF)
|
||||
|
||||
inline
|
||||
Uint32
|
||||
ScanTabInfo::getLen(const UintR & operLenAndIdx){
|
||||
return (Uint32)((operLenAndIdx >> LENGTH_SHIFT) & LENGTH_MASK);
|
||||
}
|
||||
|
||||
inline
|
||||
Uint8
|
||||
ScanTabInfo::getIdx(const UintR & operLenAndIdx){
|
||||
return (Uint8)((operLenAndIdx >> INDEX_SHIFT) & INDEX_MASK);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
|
Reference in New Issue
Block a user