diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2023-01-10 15:06:25 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2023-01-10 15:06:25 +0200 |
commit | cae5a0328bd70fa1bc877fc35fecc704fdb6f6cb (patch) | |
tree | 8d4f7cd1c17be55f899e20a20f4b4f0b86a5fd53 /sql/table.h | |
parent | 66f7f7998ceae4b6274c5e84738b2c0c8dfa3064 (diff) | |
parent | 820ebcec8651d2478ece554f059a5513f0b2bedf (diff) | |
download | mariadb-git-cae5a0328bd70fa1bc877fc35fecc704fdb6f6cb.tar.gz |
Merge 10.9 into 10.10
Diffstat (limited to 'sql/table.h')
-rw-r--r-- | sql/table.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sql/table.h b/sql/table.h index ff9f93becbf..aeba303926a 100644 --- a/sql/table.h +++ b/sql/table.h @@ -1665,7 +1665,11 @@ public: } /// Return true if table is instantiated, and false otherwise. - bool is_created() const { return created; } + bool is_created() const + { + DBUG_ASSERT(!created || file != 0); + return created; + } /** Set the table as "created", and enable flags in storage engine @@ -1680,6 +1684,11 @@ public: created= true; } + void reset_created() + { + created= 0; + } + /* Returns TRUE if the table is filled at execution phase (and so, the optimizer must not do anything that depends on the contents of the table, |