ndb tablehandler, ndb make and endien define, see each file

configure.in:
  configure to check if HAVE_COMPRESS for ndbcluster table handler
ndb/Makefile:
  fix for problems with parallell make
ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
  changed ifdef _BIG_ENDIAN => WORDS_BIGENDIAN
ndb/src/ndbapi/Ndb.cpp:
  changed ifdef _BIG_ENDIAN => WORDS_BIGENDIAN
This commit is contained in:
unknown 2004-05-19 05:21:35 +02:00
parent e858cd9642
commit 5fe274b077
4 changed files with 17 additions and 7 deletions

View file

@ -2752,6 +2752,14 @@ EOF
if test X"$have_ndbcluster" = Xyes
then
if test X"$mysql_cv_compress" != Xyes
then
echo
echo "MySQL Cluster table handler ndbcluster requires compress/uncompress."
echo "Commonly available in libzlib.a. Please install and rerun configure."
echo
exit 1
fi
sql_server_dirs="$sql_server_dirs ndb"
echo "CONFIGURING FOR NDB CLUSTER"
case $with_debug in

View file

@ -7,11 +7,11 @@ replace-targets := all clean
NDB_RELEASE := $(shell ../scripts/mysql_config --version)
all:
$(MAKE) -C src
$(MAKE) -C test/src
$(MAKE) -C tools
$(MAKE) -C test/ndbapi/flexBench
$(MAKE) -C test/tools/waiter
$(MAKE) -j 1 -C src
$(MAKE) -j 1 -C test/src
$(MAKE) -j 1 -C tools
$(MAKE) -j 1 -C test/ndbapi/flexBench
$(MAKE) -j 1 -C test/tools/waiter
include $(NDB_TOP)/Epilogue.mk

View file

@ -14,6 +14,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#define DBDICT_C
#include "Dbdict.hpp"
@ -5703,7 +5705,7 @@ void Dbdict::sendGET_TABINFOREF(Signal* signal,
}//sendGET_TABINFOREF()
Uint32 convertEndian(Uint32 in) {
#ifdef _BIG_ENDIAN
#ifdef WORDS_BIGENDIAN
Uint32 ut = 0;
ut += ((in >> 24) & 255);
ut += (((in >> 16) & 255) << 8);

View file

@ -992,7 +992,7 @@ Ndb::StartTransactionNodeSelectionData::release(){
Uint32
convertEndian(Uint32 Data)
{
#ifdef _BIG_ENDIAN
#ifdef WORDS_BIGENDIAN
Uint32 t1, t2, t3, t4;
t4 = (Data >> 24) & 255;
t3 = (Data >> 16) & 255;