Commit 1046fa4b authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:3053], implement ha_tokudb::truncate

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@25918 c7de825b-a66e-492c-adef-691d508d4ae1
parent ade99cf1
...@@ -7078,6 +7078,15 @@ int ha_tokudb::truncate_dictionary( uint keynr, DB_TXN* txn ) { ...@@ -7078,6 +7078,15 @@ int ha_tokudb::truncate_dictionary( uint keynr, DB_TXN* txn ) {
return error; return error;
} }
//
// for 5.5
//
int ha_tokudb::truncate() {
return delete_all_rows();
}
// delete all rows from a table // delete all rows from a table
// //
// effects: delete all of the rows in the main dictionary and all of the // effects: delete all of the rows in the main dictionary and all of the
......
...@@ -492,6 +492,7 @@ class ha_tokudb : public handler { ...@@ -492,6 +492,7 @@ class ha_tokudb : public handler {
// delete all rows from the table // delete all rows from the table
// effect: all dictionaries, including the main and indexes, should be empty // effect: all dictionaries, including the main and indexes, should be empty
int discard_or_import_tablespace(my_bool discard); int discard_or_import_tablespace(my_bool discard);
int truncate();
int delete_all_rows(); int delete_all_rows();
void extract_hidden_primary_key(uint keynr, DBT const *found_key); void extract_hidden_primary_key(uint keynr, DBT const *found_key);
void read_key_only(uchar * buf, uint keynr, DBT const *found_key); void read_key_only(uchar * buf, uint keynr, DBT const *found_key);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment