diff options
author | Sergei Golubchik <sergii@pisem.net> | 2010-11-25 18:17:28 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2010-11-25 18:17:28 +0100 |
commit | 65ca700def99289cc31a7040537f5aa6e12bf485 (patch) | |
tree | 97b3a07299b626c519da0e80c122b5b79b933914 /storage/ndb | |
parent | 2ab57de38d13d927ddff2d51aed4af34e13998f5 (diff) | |
parent | 6e5bcca7935d3c62f84bb640e5357664a210ee12 (diff) | |
download | mariadb-git-65ca700def99289cc31a7040537f5aa6e12bf485.tar.gz |
merge.
checkpoint.
does not compile.
Diffstat (limited to 'storage/ndb')
-rw-r--r-- | storage/ndb/plug.in | 2 | ||||
-rw-r--r-- | storage/ndb/src/ndbapi/Ndb.cpp | 10 | ||||
-rw-r--r-- | storage/ndb/src/ndbapi/NdbRecAttr.cpp | 3 |
3 files changed, 10 insertions, 5 deletions
diff --git a/storage/ndb/plug.in b/storage/ndb/plug.in index a7e351417b1..3d3349f7a8b 100644 --- a/storage/ndb/plug.in +++ b/storage/ndb/plug.in @@ -1,5 +1,5 @@ MYSQL_STORAGE_ENGINE(ndbcluster, ndbcluster, [Cluster Storage Engine], - [High Availability Clustered tables], [max]) + [High Availability Clustered tables],) MYSQL_PLUGIN_DIRECTORY(ndbcluster,[storage/ndb]) MYSQL_PLUGIN_STATIC(ndbcluster, [[\$(ndbcluster_libs) \$(ndbcluster_system_libs) \$(NDB_SCI_LIBS)]]) MYSQL_PLUGIN_ACTIONS(ndbcluster,[MYSQL_SETUP_NDBCLUSTER]) diff --git a/storage/ndb/src/ndbapi/Ndb.cpp b/storage/ndb/src/ndbapi/Ndb.cpp index e6a1c2cfcfd..70e0dc7e2f2 100644 --- a/storage/ndb/src/ndbapi/Ndb.cpp +++ b/storage/ndb/src/ndbapi/Ndb.cpp @@ -1569,9 +1569,11 @@ Ndb::externalizeTableName(const char * internalTableName, bool fullyQualifiedNam register const char *ptr = internalTableName; // Skip database name - while (*ptr && *ptr++ != table_name_separator); + while (*ptr && *ptr++ != table_name_separator) + ; // Skip schema name - while (*ptr && *ptr++ != table_name_separator); + while (*ptr && *ptr++ != table_name_separator) + ; return ptr; } else @@ -1591,7 +1593,9 @@ Ndb::externalizeIndexName(const char * internalIndexName, bool fullyQualifiedNam register const char *ptr = internalIndexName; // Scan name from the end - while (*ptr++); ptr--; // strend + while (*ptr++) + ; + ptr--; // strend while (ptr >= internalIndexName && *ptr != table_name_separator) ptr--; diff --git a/storage/ndb/src/ndbapi/NdbRecAttr.cpp b/storage/ndb/src/ndbapi/NdbRecAttr.cpp index 38ca14085f0..3b0329dd7ac 100644 --- a/storage/ndb/src/ndbapi/NdbRecAttr.cpp +++ b/storage/ndb/src/ndbapi/NdbRecAttr.cpp @@ -248,7 +248,8 @@ ndbrecattr_print_formatted(NdbOut& out, const NdbRecAttr &r, { const Uint32 *buf = (Uint32 *)r.aRef(); int k = (length+31)/32; - while (k > 0 && (buf[--k] == 0)); + while (k > 0 && (buf[--k] == 0)) + ; out.print("%X", buf[k]); while (k > 0) out.print("%.8X", buf[--k]); |