row0ins.c, ha_innodb.cc:

Table hash key len in query cache also includes null char at end
This commit is contained in:
heikki@hundin.mysql.fi 2002-09-22 01:38:48 +03:00
commit 62b2b08717
2 changed files with 11 additions and 7 deletions

View file

@ -44,9 +44,11 @@ innobase_invalidate_query_cache(
/*============================*/
trx_t* trx, /* in: transaction which modifies the table */
char* full_name, /* in: concatenation of database name, null
char '\0', table name; NOTE that in
Windows this is always in LOWER CASE! */
ulint full_name_len); /* in: full name length */
char '\0', table name, null char'\0';
NOTE that in Windows this is always
in LOWER CASE! */
ulint full_name_len); /* in: full name length where also the null
chars count */
/*************************************************************************
@ -426,7 +428,7 @@ row_ins_foreign_delete_or_set_null(
/* We call a function in ha_innodb.cc */
innobase_invalidate_query_cache(thr_get_trx(thr), table_name_buf,
ut_strlen(table->name));
ut_strlen(table->name) + 1);
node = thr->run_node;
ut_a(que_node_get_type(node) == QUE_NODE_UPDATE);