diff options
author | Mattias Jonsson <mattias.jonsson@sun.com> | 2008-10-29 21:20:04 +0100 |
---|---|---|
committer | Mattias Jonsson <mattias.jonsson@sun.com> | 2008-10-29 21:20:04 +0100 |
commit | cb6cb742f372343a3c164d88d3c1e44ab3207347 (patch) | |
tree | 46d69bcb667bb30440976ffa5ffc28884f17fd59 /sql/handler.h | |
parent | 8fe1cce5b5ab852254b06d8a55bee44f45442906 (diff) | |
download | mariadb-git-cb6cb742f372343a3c164d88d3c1e44ab3207347.tar.gz |
Bug#39084: Getting intermittent errors with statement-based binary logging
Problem was that partitioning cached the table flags.
These flags could change due to TRANSACTION LEVEL changes.
Solution was to remove the cache and always return the table flags
from the first partition (if the handler was initialized).
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/handler.h b/sql/handler.h index b7d4d689d40..b8e7f17e089 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -1198,6 +1198,9 @@ public: { return inited == INDEX ? ha_index_end() : inited == RND ? ha_rnd_end() : 0; } + /** + The cached_table_flags is set at ha_open and ha_external_lock + */ Table_flags ha_table_flags() const { return cached_table_flags; } /** These functions represent the public interface to *users* of the |