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

implement UNIQUE_CHECKS=0 in the tokudb storage engine. close #428

git-svn-id: file:///svn/mysql/tokudb-engine/src@2369 c7de825b-a66e-492c-adef-691d508d4ae1
parent 0e3de4b4
......@@ -1228,10 +1228,12 @@ int ha_tokudb::write_row(uchar * record) {
u_int32_t put_flags = key_type[primary_key];
THD *thd = ha_thd();
printf("%s:%d:unique:%d\n", __FILE__, __LINE__,
thd_test_options(thd, OPTION_RELAXED_UNIQUE_CHECKS));
if (thd_test_options(thd, OPTION_RELAXED_UNIQUE_CHECKS))
if (thd_test_options(thd, OPTION_RELAXED_UNIQUE_CHECKS)) {
if (0)
printf("%s:%d:unique:%d\n", __FILE__, __LINE__,
thd_test_options(thd, OPTION_RELAXED_UNIQUE_CHECKS));
put_flags = DB_YESOVERWRITE;
}
table->insert_or_update = 1; // For handling of VARCHAR
if (table_share->keys + test(hidden_primary_key) == 1) {
......
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