summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorKentoku <kentokushiba@gmail.com>2019-05-20 02:05:22 +0900
committerKentoku <kentokushiba@gmail.com>2019-05-20 03:15:32 +0900
commitae106f13922079d3f97210a73104087447958257 (patch)
tree2c5359110a95ffd309ef8f3a05a35a2c1a4b8733 /sql/handler.h
parent8feb78ef53d254539caa0ede374acf2d4db13d2b (diff)
downloadmariadb-git-bb-10.4-MDEV-19002.tar.gz
MDEV-19002 Partition performance optimizationbb-10.4-MDEV-19002
Add the partition options of the following function for batch call instead o - store_lock - external_lock - start_stmt - extra - cond_push - info_push - top_table
Diffstat (limited to 'sql/handler.h')
-rw-r--r--sql/handler.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/handler.h b/sql/handler.h
index fb6862e4ce1..4bee8d16cab 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -351,6 +351,15 @@ enum enum_alter_inplace_result {
#define HA_DO_RANGE_FILTER_PUSHDOWN 1024
+/* table flags for partition engine */
+#define HA_PT_CALL_AT_ONCE_STORE_LOCK (1 << 0)
+#define HA_PT_CALL_AT_ONCE_EXTERNAL_LOCK (1 << 1)
+#define HA_PT_CALL_AT_ONCE_START_STMT (1 << 2)
+#define HA_PT_CALL_AT_ONCE_EXTRA (1 << 3)
+#define HA_PT_CALL_AT_ONCE_COND_PUSH (1 << 4)
+#define HA_PT_CALL_AT_ONCE_INFO_PUSH (1 << 5)
+#define HA_PT_CALL_AT_ONCE_TOP_TABLE (1 << 6)
+
/*
bits in alter_table_flags:
*/
@@ -3904,6 +3913,7 @@ public:
}
virtual void set_part_info(partition_info *part_info) {return;}
virtual void return_record_by_parent() { return; }
+ virtual ulong table_flags_for_partition() { return 0; };
virtual ulong index_flags(uint idx, uint part, bool all_parts) const =0;