Commit 3427fd03 authored by Sergei Golubchik's avatar Sergei Golubchik

making perfschema easier to merge: remove unnecessary changes

parent 4a84ee1c
...@@ -392,6 +392,11 @@ int ha_perfschema::delete_all_rows(void) ...@@ -392,6 +392,11 @@ int ha_perfschema::delete_all_rows(void)
DBUG_RETURN(result); DBUG_RETURN(result);
} }
int ha_perfschema::truncate()
{
return delete_all_rows();
}
THR_LOCK_DATA **ha_perfschema::store_lock(THD *thd, THR_LOCK_DATA **ha_perfschema::store_lock(THD *thd,
THR_LOCK_DATA **to, THR_LOCK_DATA **to,
enum thr_lock_type lock_type) enum thr_lock_type lock_type)
......
...@@ -69,8 +69,8 @@ public: ...@@ -69,8 +69,8 @@ public:
calls ::rnd_pos(), so it is guaranteed to return only thread <n> calls ::rnd_pos(), so it is guaranteed to return only thread <n>
records. records.
*/ */
return (HA_NO_TRANSACTIONS | HA_REC_NOT_IN_SEQ | HA_NO_AUTO_INCREMENT | return HA_NO_TRANSACTIONS | HA_REC_NOT_IN_SEQ | HA_NO_AUTO_INCREMENT |
HA_PRIMARY_KEY_REQUIRED_FOR_DELETE); HA_PRIMARY_KEY_REQUIRED_FOR_DELETE;
} }
/** /**
...@@ -170,6 +170,8 @@ public: ...@@ -170,6 +170,8 @@ public:
int delete_all_rows(void); int delete_all_rows(void);
int truncate();
int delete_table(const char *from); int delete_table(const char *from);
int rename_table(const char * from, const char * to); int rename_table(const char * from, const char * to);
......
This diff is collapsed.
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