mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge 4.1 with jonas irix clone
BitKeeper/etc/logging_ok: auto-union ndb/include/kernel/NodeState.hpp: Auto merged ndb/include/ndbapi/NdbDictionary.hpp: Auto merged ndb/include/util/Bitmask.hpp: Auto merged ndb/src/common/debugger/EventLogger.cpp: Auto merged ndb/src/common/transporter/TransporterRegistry.cpp: Auto merged ndb/src/common/util/SocketServer.cpp: Auto merged ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp: Auto merged ndb/src/kernel/blocks/dbacc/DbaccMain.cpp: Auto merged ndb/src/kernel/blocks/dbdict/Dbdict.cpp: Auto merged ndb/src/kernel/blocks/dbdih/DbdihInit.cpp: Auto merged ndb/src/kernel/blocks/dbdih/DbdihMain.cpp: Auto merged ndb/src/kernel/blocks/dblqh/DblqhMain.cpp: Auto merged ndb/src/kernel/main.cpp: Auto merged ndb/src/kernel/blocks/dbtc/DbtcMain.cpp: Auto merged ndb/src/kernel/blocks/qmgr/QmgrMain.cpp: Auto merged ndb/src/kernel/error/ErrorReporter.hpp: Auto merged ndb/src/mgmapi/mgmapi.cpp: Auto merged ndb/src/mgmclient/CpcClient.cpp: Auto merged ndb/src/mgmsrv/Services.cpp: Auto merged ndb/src/ndbapi/Ndb.cpp: Auto merged ndb/src/ndbapi/NdbDictionaryImpl.cpp: Auto merged ndb/src/ndbapi/NdbEventOperationImpl.cpp: Auto merged ndb/src/ndbapi/Ndbinit.cpp: Auto merged ndb/test/include/NDBT_Table.hpp: Auto merged ndb/test/include/NDBT_Test.hpp: Auto merged ndb/test/run-test/main.cpp: Auto merged ndb/test/src/HugoOperations.cpp: Auto merged ndb/test/src/HugoTransactions.cpp: Auto merged ndb/test/src/NDBT_Tables.cpp: Auto merged ndb/test/src/NDBT_Test.cpp: Auto merged ndb/test/src/NdbRestarter.cpp: Auto merged ndb/tools/waiter.cpp: Auto merged sql/ha_ndbcluster.cc: Auto merged
This commit is contained in:
@ -19,11 +19,6 @@
|
||||
|
||||
#include <ndb_global.h>
|
||||
|
||||
#ifndef NDB_ASSERT
|
||||
#define NDB_ASSERT(x, s) \
|
||||
do { if (!(x)) { printf("%s\n", s); abort(); } } while (0)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Bitmask implementation. Size is given explicitly
|
||||
* (as first argument). All methods are static.
|
||||
@ -140,7 +135,7 @@ public:
|
||||
inline bool
|
||||
BitmaskImpl::get(unsigned size, const Uint32 data[], unsigned n)
|
||||
{
|
||||
NDB_ASSERT(n < (size << 5), "bit get out of range");
|
||||
assert(n < (size << 5));
|
||||
return (data[n >> 5] & (1 << (n & 31))) != 0;
|
||||
}
|
||||
|
||||
@ -153,7 +148,7 @@ BitmaskImpl::set(unsigned size, Uint32 data[], unsigned n, bool value)
|
||||
inline void
|
||||
BitmaskImpl::set(unsigned size, Uint32 data[], unsigned n)
|
||||
{
|
||||
NDB_ASSERT(n < (size << 5), "bit set out of range");
|
||||
assert(n < (size << 5));
|
||||
data[n >> 5] |= (1 << (n & 31));
|
||||
}
|
||||
|
||||
@ -176,7 +171,7 @@ BitmaskImpl::assign(unsigned size, Uint32 dst[], const Uint32 src[])
|
||||
inline void
|
||||
BitmaskImpl::clear(unsigned size, Uint32 data[], unsigned n)
|
||||
{
|
||||
NDB_ASSERT(n < (size << 5), "bit clear out of range");
|
||||
assert(n < (size << 5));
|
||||
data[n >> 5] &= ~(1 << (n & 31));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user