summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Nozdrin <alik@sun.com>2009-10-16 19:21:54 +0400
committerAlexander Nozdrin <alik@sun.com>2009-10-16 19:21:54 +0400
commita34b9f91da9af5942d5000e7ed0d91fc018eae55 (patch)
treee90f13884721a8fc835432328e2e6c2a3b98d13f
parentcbc6d11f7da2f754a13899df5659f7c9da9105b3 (diff)
downloadmariadb-git-a34b9f91da9af5942d5000e7ed0d91fc018eae55.tar.gz
Backporting revision from 6.0:
revno: 2617.56.25 committer: Alexander Nozdrin <alik@sun.com> branch nick: azalea-bugfixing timestamp: Thu 2009-07-09 20:30:43 +0400 message: Add a comment in the source (Bug#40358).
-rw-r--r--include/my_base.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/my_base.h b/include/my_base.h
index a01b2ec9b82..70bd9b5e073 100644
--- a/include/my_base.h
+++ b/include/my_base.h
@@ -255,7 +255,17 @@ enum ha_base_keytype {
HA_BINARY_PACK_KEY | HA_FULLTEXT | HA_UNIQUE_CHECK | \
HA_SPATIAL | HA_NULL_ARE_EQUAL | HA_GENERATED_KEY)
-#define HA_KEY_HAS_PART_KEY_SEG 65536 /* Key contains partial segments */
+/*
+ Key contains partial segments.
+
+ This flag is internal to the MySQL server by design. It is not supposed
+ neither to be saved in FRM-files, nor to be passed to storage engines.
+ It is intended to pass information into internal static sort_keys(KEY *,
+ KEY *) function.
+
+ This flag can be calculated -- it's based on key lengths comparison.
+*/
+#define HA_KEY_HAS_PART_KEY_SEG 65536
/* Automatic bits in key-flag */