diff --git a/bdb/dist/gen_inc.awk b/bdb/dist/gen_inc.awk index 4d245623bee9df238244477e9a79cd22985a7e3f..2f5b491cda1f898b830c7762c08cf8f9a3d1ec7d 100644 --- a/bdb/dist/gen_inc.awk +++ b/bdb/dist/gen_inc.awk @@ -18,20 +18,20 @@ # i_pfile include file that contains internal (PUBLIC) prototypes /PUBLIC:/ { sub("^.*PUBLIC:[ ][ ]*", "") - if ($0 ~ "^#if|^#ifdef|^#ifndef|^#else|^#endif") { + if ($0 ~ /^#(if|ifdef|ifndef|else|endif)/) { print $0 >> i_pfile print $0 >> i_dfile next } pline = sprintf("%s %s", pline, $0) - if (pline ~ "));") { + if (pline ~ /\)\);/) { sub("^[ ]*", "", pline) print pline >> i_pfile if (pline !~ db_version_unique_name) { - def = gensub("[ ][ ]*__P.*", "", 1, pline) - sub("^.*[ ][*]*", "", def) + sub("[ ][ ]*__P.*", "", pline) + sub("^.*[ ][*]*", "", pline) printf("#define %s %s@DB_VERSION_UNIQUE_NAME@\n", - def, def) >> i_dfile + pline, pline) >> i_dfile } pline = "" } @@ -53,20 +53,20 @@ # functions in libraries built with that configuration option. /EXTERN:/ { sub("^.*EXTERN:[ ][ ]*", "") - if ($0 ~ "^#if|^#ifdef|^#ifndef|^#else|^#endif") { + if ($0 ~ /^#(if|ifdef|ifndef|else|endif)/) { print $0 >> e_pfile print $0 >> e_dfile next } eline = sprintf("%s %s", eline, $0) - if (eline ~ "));") { + if (eline ~ /\)\);/) { sub("^[ ]*", "", eline) print eline >> e_pfile - if (eline !~ db_version_unique_name && eline !~ "^int txn_") { - def = gensub("[ ][ ]*__P.*", "", 1, eline) - sub("^.*[ ][*]*", "", def) + if (eline !~ db_version_unique_name && eline !~ /^int txn_/) { + sub("[ ][ ]*__P.*", "", eline) + sub("^.*[ ][*]*", "", eline) printf("#define %s %s@DB_VERSION_UNIQUE_NAME@\n", - def, def) >> e_dfile + eline, eline) >> e_dfile } eline = "" } diff --git a/ndb/src/mgmapi/Makefile.am b/ndb/src/mgmapi/Makefile.am index 674debf5cc379b8adf30d7d56bf9eb2203847ea1..0f0e1cea5d84ef5827fe54a3948f4156d48e10a8 100644 --- a/ndb/src/mgmapi/Makefile.am +++ b/ndb/src/mgmapi/Makefile.am @@ -10,9 +10,6 @@ include $(top_srcdir)/ndb/config/common.mk.am include $(top_srcdir)/ndb/config/type_util.mk.am #ndbtest_PROGRAMS = ndb_test_mgmapi -#ndb_test_mgmapi_SOURCES = test_mgmapi.cpp -#ndb_test_mgmapi_LDFLAGS = @ndb_bin_am_ldflags@ -# $(top_builddir)/ndb/src/libndbclient.la # Don't update the files from bitkeeper %::SCCS/s.% diff --git a/ndb/src/ndbapi/NdbScanOperation.cpp b/ndb/src/ndbapi/NdbScanOperation.cpp index 04043f5a4c5e086b94317a3229320f46d9aca57a..f8955f0d3f782b2bca14c71c027b9940aad0872c 100644 --- a/ndb/src/ndbapi/NdbScanOperation.cpp +++ b/ndb/src/ndbapi/NdbScanOperation.cpp @@ -664,8 +664,6 @@ NdbScanOperation::doSend(int ProcessorId) void NdbScanOperation::closeScan() { - int self = pthread_self() ; - if(m_transConnection) do { if(DEBUG_NEXT_RESULT) ndbout_c("closeScan() theError.code = %d "