Commit b38d88b2 authored by unknown's avatar unknown

ndb_version.h.in : Fix a syntax error (variable declaration came too late).


storage/ndb/include/ndb_version.h.in:
  C syntax requires variable declarations to be before executable statements.
parent 4f5658cb
...@@ -103,11 +103,12 @@ inline ...@@ -103,11 +103,12 @@ inline
int int
ndb_check_prep_copy_frag_version(Uint32 version) 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) if (version == NDB_VERSION_D)
return 2; return 2;
const Uint32 major = (version >> 16) & 0xFF;
const Uint32 minor = (version >> 8) & 0xFF;
if (major >= 6) if (major >= 6)
{ {
if (minor == 2) if (minor == 2)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment