mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
ndb - some warnings, debug errors
This commit is contained in:
parent
2920f9298a
commit
ab547213ad
3 changed files with 5 additions and 5 deletions
|
@ -129,7 +129,7 @@ SignalLoggerManager::log(LogMode logMode, const char * params)
|
|||
const int count = getParameter(blocks, "BLOCK=", params);
|
||||
|
||||
int cnt = 0;
|
||||
if((count == 1 && blocks[0] == "ALL") ||
|
||||
if((count == 1 && !strcmp(blocks[0], "ALL")) ||
|
||||
count == 0){
|
||||
|
||||
for (int number = 0; number < NO_OF_BLOCKS; ++number){
|
||||
|
|
|
@ -69,7 +69,7 @@ printSCANTABCONF(FILE * output, const Uint32 * theData, Uint32 len, Uint16 recei
|
|||
sig->transId1, sig->transId2);
|
||||
|
||||
fprintf(output, " requestInfo: Eod: %d OpCount: %d\n",
|
||||
(requestInfo & ScanTabConf::EndOfData == ScanTabConf::EndOfData),
|
||||
(requestInfo & ScanTabConf::EndOfData) == ScanTabConf::EndOfData,
|
||||
(requestInfo & (~ScanTabConf::EndOfData)));
|
||||
size_t op_count= requestInfo & (~ScanTabConf::EndOfData);
|
||||
if(op_count){
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
theEmulatedJamBlockNumber = number(); \
|
||||
Uint32 tEmulatedJamIndex = theEmulatedJamIndex; \
|
||||
*(Uint32*)(theEmulatedJam + tEmulatedJamIndex) = \
|
||||
((theEmulatedJamBlockNumber << 20) | line); \
|
||||
((theEmulatedJamBlockNumber << 20) | (line)); \
|
||||
theEmulatedJamIndex = (tEmulatedJamIndex + 4) & JAM_MASK; }
|
||||
|
||||
#else
|
||||
|
@ -72,7 +72,7 @@
|
|||
theEmulatedJamBlockNumber = number(); \
|
||||
Uint32 tEmulatedJamIndex = theEmulatedJamIndex; \
|
||||
*(Uint32*)((UintPtr)theEmulatedJam + (Uint32)tEmulatedJamIndex) = \
|
||||
((theEmulatedJamBlockNumber << 20) | line); \
|
||||
((theEmulatedJamBlockNumber << 20) | (line)); \
|
||||
theEmulatedJamIndex = (tEmulatedJamIndex + 4) & JAM_MASK; }
|
||||
|
||||
#endif
|
||||
|
@ -232,7 +232,7 @@
|
|||
#define MEMCOPY_PAGE(to, from, page_size_in_bytes) \
|
||||
memcpy((void*)(to), (void*)(from), (size_t)(page_size_in_bytes));
|
||||
#define MEMCOPY_NO_WORDS(to, from, no_of_words) \
|
||||
memcpy((to), (void*)(from), (size_t)(no_of_words << 2));
|
||||
memcpy((to), (void*)(from), (size_t)((no_of_words) << 2));
|
||||
|
||||
template <class T>
|
||||
struct Ptr {
|
||||
|
|
Loading…
Reference in a new issue