summaryrefslogtreecommitdiff
path: root/storage/ndb/include
diff options
context:
space:
mode:
authorunknown <joerg@trift2.>2008-03-27 13:20:24 +0100
committerunknown <joerg@trift2.>2008-03-27 13:20:24 +0100
commita0cf1fa1688cc7e820f10256bae36b86e21388ab (patch)
tree47760c8689d079aa5b173ef4ef59cd7033a7bca7 /storage/ndb/include
parent09d7b08a5c61b786c7dab327c248f392ac49c020 (diff)
parentb38d88b23e5ee7ea56e4fc5f280386051b696a86 (diff)
downloadmariadb-git-a0cf1fa1688cc7e820f10256bae36b86e21388ab.tar.gz
Merge trift2.:/MySQL/M51/ndb-decl-5.1
into trift2.:/MySQL/M51/push-5.1
Diffstat (limited to 'storage/ndb/include')
-rw-r--r--storage/ndb/include/ndb_version.h.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/storage/ndb/include/ndb_version.h.in b/storage/ndb/include/ndb_version.h.in
index 6a479433b3b..97072315521 100644
--- a/storage/ndb/include/ndb_version.h.in
+++ b/storage/ndb/include/ndb_version.h.in
@@ -103,11 +103,12 @@ inline
int
ndb_check_prep_copy_frag_version(Uint32 version)
{
+ const Uint32 major = (version >> 16) & 0xFF;
+ const Uint32 minor = (version >> 8) & 0xFF;
+
if (version == NDB_VERSION_D)
return 2;
- const Uint32 major = (version >> 16) & 0xFF;
- const Uint32 minor = (version >> 8) & 0xFF;
if (major >= 6)
{
if (minor == 2)