summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorunknown <pekka@mysql.com>2005-05-07 10:56:03 +0200
committerunknown <pekka@mysql.com>2005-05-07 10:56:03 +0200
commitaa0c40a33bffc2a82bf200e54c5d8b1234d59acf (patch)
tree4ad486e78769dc37865e1ab50007d8661109c6f1 /ndb
parenta3a9677ab240b12fa7cc26e60251e562bd979d81 (diff)
downloadmariadb-git-aa0c40a33bffc2a82bf200e54c5d8b1234d59acf.tar.gz
ndb - bug#8928
ndb/src/kernel/blocks/dbdict/Dbdict.cpp: same number of lh3distrbits for all frags
Diffstat (limited to 'ndb')
-rw-r--r--ndb/src/kernel/blocks/dbdict/Dbdict.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ndb/src/kernel/blocks/dbdict/Dbdict.cpp b/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
index 184db794057..0c4d20ca248 100644
--- a/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
+++ b/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
@@ -4043,12 +4043,14 @@ calcLHbits(Uint32 * lhPageBits, Uint32 * lhDistrBits,
tmp <<= 1;
distrBits++;
}//while
+#ifdef ndb_classical_lhdistrbits
if (tmp != totalFragments) {
tmp >>= 1;
if ((fid >= (totalFragments - tmp)) && (fid < (tmp - 1))) {
distrBits--;
}//if
}//if
+#endif
* lhPageBits = pageBits;
* lhDistrBits = distrBits;