diff options
author | unknown <sanja@askmonty.org> | 2009-10-06 09:57:22 +0300 |
---|---|---|
committer | unknown <sanja@askmonty.org> | 2009-10-06 09:57:22 +0300 |
commit | 0c0e1f2e351923c2fecdf38641734ec796ec9c15 (patch) | |
tree | 96d00264d97a8b622eb19cb950aa2341a6d62177 /storage/myisam/mi_locking.c | |
parent | d50e99c9f63d3cd46fdde0e95072117759c7e852 (diff) | |
download | mariadb-git-0c0e1f2e351923c2fecdf38641734ec796ec9c15.tar.gz |
BUG#39249 Maria:query cache returns out of date results
BUG#41098 Query Cache returns wrong result with concurent insert
BUILD/SETUP.sh:
test build without query cache setup
BUILD/compile-pentium-debug-max-no-qc:
test build without query cache
sql/mysql_priv.h:
removed double declaration
storage/maria/ha_maria.cc:
query cache invalidation fixed
storage/maria/ma_state.c:
query cache invalidation fixed
storage/maria/maria_def.h:
last transaction ID added
invalidation fixed
storage/myisam/ha_myisam.cc:
invalidation fixed
storage/myisam/mi_locking.c:
invalidation fixed
storage/myisam/myisamdef.h:
invalidation fixed
Diffstat (limited to 'storage/myisam/mi_locking.c')
-rw-r--r-- | storage/myisam/mi_locking.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/storage/myisam/mi_locking.c b/storage/myisam/mi_locking.c index ebee8826c3b..b935d517c81 100644 --- a/storage/myisam/mi_locking.c +++ b/storage/myisam/mi_locking.c @@ -329,6 +329,12 @@ void mi_update_status(void* param) #endif info->s->state.state= *info->state; info->state= &info->s->state.state; +#ifdef HAVE_QUERY_CACHE + DBUG_PRINT("info", ("invalidator... '%s' (status update)", + info->filename)); + DBUG_ASSERT(info->s->chst_invalidator != NULL); + (*info->s->chst_invalidator)((const char *)info->filename); +#endif } info->append_insert_at_end= 0; |