Commit 6545e47b 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 d2646319
......@@ -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) {
#if 50609 <= MYSQL_VERSION_ID && MYSQL_VERSION_ID <= 50699
return key->usable_key_parts;
return key->user_defined_key_parts;
#else
return key->key_parts;
#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