Commit d5802f4b authored by Rich Prohaska's avatar Rich Prohaska

fix DBUG_RETURN in the ::create_key method. addresses #317

git-svn-id: file:///svn/mysql/tokudb-engine-test2/src@2096 c7de825b-a66e-492c-adef-691d508d4ae1
parent 77138002
......@@ -701,6 +701,8 @@ tokudb_cmp_packed_key(DB *file, const DBT *new_key, const DBT *saved_key)
if (!*new_key_ptr++)
continue;
}
if (key->table->insert_or_update != 1)
printf("%s:%d:insert_or_update=%d\n", key->table->insert_or_update);
if ((cmp= key_part->field->pack_cmp(new_key_ptr,saved_key_ptr,
key_part->length,
key->table->insert_or_update)))
......@@ -1081,7 +1083,7 @@ DBT *ha_tokudb::create_key(DBT *key, uint keynr, uchar *buff,
{
key->data= current_ident;
key->size= TDB_HIDDEN_PRIMARY_KEY_LENGTH;
return key;
DBUG_RETURN(key);
}
KEY *key_info= table->key_info+keynr;
......
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