mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
[t:3053], implement ha_tokudb::truncate
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25918 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
eed214ab8e
commit
b542805fc3
2 changed files with 10 additions and 0 deletions
|
@ -7078,6 +7078,15 @@ cleanup:
|
|||
return error;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// for 5.5
|
||||
//
|
||||
int ha_tokudb::truncate() {
|
||||
return delete_all_rows();
|
||||
}
|
||||
|
||||
|
||||
// delete all rows from a table
|
||||
//
|
||||
// effects: delete all of the rows in the main dictionary and all of the
|
||||
|
|
|
@ -492,6 +492,7 @@ public:
|
|||
// delete all rows from the table
|
||||
// effect: all dictionaries, including the main and indexes, should be empty
|
||||
int discard_or_import_tablespace(my_bool discard);
|
||||
int truncate();
|
||||
int delete_all_rows();
|
||||
void extract_hidden_primary_key(uint keynr, DBT const *found_key);
|
||||
void read_key_only(uchar * buf, uint keynr, DBT const *found_key);
|
||||
|
|
Loading…
Reference in a new issue