Commit cb10fa2d authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

refs #4476 use user_defined_key_parts

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@51199 c7de825b-a66e-492c-adef-691d508d4ae1
parent aaad5d49
...@@ -276,7 +276,7 @@ static inline bool do_ignore_flag_optimization(THD* thd, TABLE* table, bool opt_ ...@@ -276,7 +276,7 @@ static inline bool do_ignore_flag_optimization(THD* thd, TABLE* table, bool opt_
static inline uint get_key_parts(const KEY *key) { static inline uint get_key_parts(const KEY *key) {
#if 50609 <= MYSQL_VERSION_ID && MYSQL_VERSION_ID <= 50699 #if 50609 <= MYSQL_VERSION_ID && MYSQL_VERSION_ID <= 50699
return key->usable_key_parts; return key->user_defined_key_parts;
#else #else
return key->key_parts; return key->key_parts;
#endif #endif
......
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