diff options
author | unknown <monty@hundin.mysql.fi> | 2001-12-20 06:14:11 +0200 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-12-20 06:14:11 +0200 |
commit | c23e5a830cd9d7fe5a14e6e971fddd32cd0fad69 (patch) | |
tree | 6238391b82cf68076a5dea6dd2e3c8c5c27473cd /sql/sql_insert.cc | |
parent | 7a8ce131289d31e8541e3e4f9085aefd7257b81d (diff) | |
download | mariadb-git-c23e5a830cd9d7fe5a14e6e971fddd32cd0fad69.tar.gz |
Fix insert delated + query cache.
Fix pthread_mutex_trylock on HPUX (needed for query cache).
include/my_pthread.h:
Fixed mutex problem with pthread_mutex_trylock on HPUX.
mysql-test/mysql-test-run.sh:
Wait for .pid file instead of .sock, because .pid is created later.
mysql-test/r/query_cache.result:
Test insert delated + query cache
mysql-test/t/query_cache.test:
Test insert delated + query cache
mysys/my_pthread.c:
Fixed mutex problem with pthread_mutex_trylock on HPUX.
sql/repl_failsafe.cc:
Safety
sql/sql_insert.cc:
Fix insert delated + query cache
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 526bd86bb58..06a1818b50d 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -1227,6 +1227,7 @@ bool delayed_insert::handle_inserts(void) sql_print_error("%s",thd.net.last_error); goto err; } + query_cache.invalidate(table); if (thr_reschedule_write_lock(*thd.lock->locks)) { /* This should never happen */ @@ -1251,6 +1252,7 @@ bool delayed_insert::handle_inserts(void) sql_print_error("%s",thd.net.last_error); goto err; } + query_cache.invalidate(table); pthread_mutex_lock(&mutex); DBUG_RETURN(0); |