From 485a656df89d6c570b2ccfc0c660557549670a0b Mon Sep 17 00:00:00 2001 From: "joerg@trift2." <> Date: Tue, 5 Feb 2008 15:24:41 +0100 Subject: [PATCH] ndb_version.h.in : Fix a syntax error (variable declaration came too late). --- storage/ndb/include/ndb_version.h.in | 5 +++-- 1 file 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) -- 2.30.9