diff options
Diffstat (limited to 'sql/table.h')
-rw-r--r-- | sql/table.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/table.h b/sql/table.h index 3d11118a3ea..3832e7c9555 100644 --- a/sql/table.h +++ b/sql/table.h @@ -950,6 +950,21 @@ public: */ inline bool needs_reopen() { return !db_stat || m_needs_reopen; } + + inline void set_keyread(bool flag) + { + DBUG_ASSERT(file); + if (flag && !key_read) + { + key_read= 1; + file->extra(HA_EXTRA_KEYREAD); + } + else if (!flag && key_read) + { + key_read= 0; + file->extra(HA_EXTRA_NO_KEYREAD); + } + } }; |