diff options
author | Eugene Kosov <claprix@yandex.ru> | 2018-04-17 09:53:44 +0300 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-05-12 10:16:46 +0200 |
commit | fe10bf870c74121fa908359a54e7e45227c17b7f (patch) | |
tree | fb38323f709f7dbc8967fa535ea075bd329f8e43 /plugin | |
parent | a4272bf154acf0e35b4b678812024b43a0c57829 (diff) | |
download | mariadb-git-fe10bf870c74121fa908359a54e7e45227c17b7f.tar.gz |
MDEV-15893 Rename VTQ to TRT
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/versioning/versioning.cc | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/plugin/versioning/versioning.cc b/plugin/versioning/versioning.cc index e48f74bc4cb..7e3c29e1494 100644 --- a/plugin/versioning/versioning.cc +++ b/plugin/versioning/versioning.cc @@ -24,26 +24,26 @@ #include "item.h" #include "vers_utils.h" -/* System Versioning: VTQ_TRX_ID(), VTQ_COMMIT_ID(), VTQ_BEGIN_TS(), VTQ_COMMIT_TS(), VTQ_ISO_LEVEL() */ -template <TR_table::field_id_t VTQ_FIELD> -class Create_func_vtq : public Create_native_func +/* System Versioning: TRT_TRX_ID(), TRT_COMMIT_ID(), TRT_BEGIN_TS(), TRT_COMMIT_TS(), TRT_ISO_LEVEL() */ +template <TR_table::field_id_t TRT_FIELD> +class Create_func_trt : public Create_native_func { public: virtual Item *create_native(THD *thd, LEX_CSTRING *name, List<Item> *item_list); - static Create_func_vtq<VTQ_FIELD> s_singleton; + static Create_func_trt<TRT_FIELD> s_singleton; protected: - Create_func_vtq<VTQ_FIELD>() {} - virtual ~Create_func_vtq<VTQ_FIELD>() {} + Create_func_trt<TRT_FIELD>() {} + virtual ~Create_func_trt<TRT_FIELD>() {} }; -template<TR_table::field_id_t VTQ_FIELD> -Create_func_vtq<VTQ_FIELD> Create_func_vtq<VTQ_FIELD>::s_singleton; +template<TR_table::field_id_t TRT_FIELD> +Create_func_trt<TRT_FIELD> Create_func_trt<TRT_FIELD>::s_singleton; -template <TR_table::field_id_t VTQ_FIELD> +template <TR_table::field_id_t TRT_FIELD> Item* -Create_func_vtq<VTQ_FIELD>::create_native(THD *thd, LEX_CSTRING *name, +Create_func_trt<TRT_FIELD>::create_native(THD *thd, LEX_CSTRING *name, List<Item> *item_list) { Item *func= NULL; @@ -56,16 +56,16 @@ Create_func_vtq<VTQ_FIELD>::create_native(THD *thd, LEX_CSTRING *name, case 1: { Item *param_1= item_list->pop(); - switch (VTQ_FIELD) + switch (TRT_FIELD) { case TR_table::FLD_BEGIN_TS: case TR_table::FLD_COMMIT_TS: - func= new (thd->mem_root) Item_func_vtq_ts(thd, param_1, VTQ_FIELD); + func= new (thd->mem_root) Item_func_trt_ts(thd, param_1, TRT_FIELD); break; case TR_table::FLD_TRX_ID: case TR_table::FLD_COMMIT_ID: case TR_table::FLD_ISO_LEVEL: - func= new (thd->mem_root) Item_func_vtq_id(thd, param_1, VTQ_FIELD); + func= new (thd->mem_root) Item_func_trt_id(thd, param_1, TRT_FIELD); break; default: DBUG_ASSERT(0); @@ -76,11 +76,11 @@ Create_func_vtq<VTQ_FIELD>::create_native(THD *thd, LEX_CSTRING *name, { Item *param_1= item_list->pop(); Item *param_2= item_list->pop(); - switch (VTQ_FIELD) + switch (TRT_FIELD) { case TR_table::FLD_TRX_ID: case TR_table::FLD_COMMIT_ID: - func= new (thd->mem_root) Item_func_vtq_id(thd, param_1, param_2, VTQ_FIELD); + func= new (thd->mem_root) Item_func_trt_id(thd, param_1, param_2, TRT_FIELD); break; default: goto error; @@ -98,8 +98,8 @@ Create_func_vtq<VTQ_FIELD>::create_native(THD *thd, LEX_CSTRING *name, return func; }; -template <class Item_func_vtq_trx_seesX> -class Create_func_vtq_trx_sees : public Create_native_func +template <class Item_func_trt_trx_seesX> +class Create_func_trt_trx_sees : public Create_native_func { public: virtual Item *create_native(THD *thd, LEX_CSTRING *name, List<Item> *item_list) @@ -115,7 +115,7 @@ public: { Item *param_1= item_list->pop(); Item *param_2= item_list->pop(); - func= new (thd->mem_root) Item_func_vtq_trx_seesX(thd, param_1, param_2); + func= new (thd->mem_root) Item_func_trt_trx_seesX(thd, param_1, param_2); break; } default: @@ -126,27 +126,27 @@ public: return func; } - static Create_func_vtq_trx_sees<Item_func_vtq_trx_seesX> s_singleton; + static Create_func_trt_trx_sees<Item_func_trt_trx_seesX> s_singleton; protected: - Create_func_vtq_trx_sees<Item_func_vtq_trx_seesX>() {} - virtual ~Create_func_vtq_trx_sees<Item_func_vtq_trx_seesX>() {} + Create_func_trt_trx_sees<Item_func_trt_trx_seesX>() {} + virtual ~Create_func_trt_trx_sees<Item_func_trt_trx_seesX>() {} }; template<class X> -Create_func_vtq_trx_sees<X> Create_func_vtq_trx_sees<X>::s_singleton; +Create_func_trt_trx_sees<X> Create_func_trt_trx_sees<X>::s_singleton; #define BUILDER(F) & F::s_singleton static Native_func_registry func_array[] = { - { { C_STRING_WITH_LEN("VTQ_BEGIN_TS") }, BUILDER(Create_func_vtq<TR_table::FLD_BEGIN_TS>)}, - { { C_STRING_WITH_LEN("VTQ_COMMIT_ID") }, BUILDER(Create_func_vtq<TR_table::FLD_COMMIT_ID>)}, - { { C_STRING_WITH_LEN("VTQ_COMMIT_TS") }, BUILDER(Create_func_vtq<TR_table::FLD_COMMIT_TS>)}, - { { C_STRING_WITH_LEN("VTQ_ISO_LEVEL") }, BUILDER(Create_func_vtq<TR_table::FLD_ISO_LEVEL>)}, - { { C_STRING_WITH_LEN("VTQ_TRX_ID") }, BUILDER(Create_func_vtq<TR_table::FLD_TRX_ID>)}, - { { C_STRING_WITH_LEN("VTQ_TRX_SEES") }, BUILDER(Create_func_vtq_trx_sees<Item_func_vtq_trx_sees>)}, - { { C_STRING_WITH_LEN("VTQ_TRX_SEES_EQ") }, BUILDER(Create_func_vtq_trx_sees<Item_func_vtq_trx_sees_eq>)}, + { { C_STRING_WITH_LEN("TRT_BEGIN_TS") }, BUILDER(Create_func_trt<TR_table::FLD_BEGIN_TS>)}, + { { C_STRING_WITH_LEN("TRT_COMMIT_ID") }, BUILDER(Create_func_trt<TR_table::FLD_COMMIT_ID>)}, + { { C_STRING_WITH_LEN("TRT_COMMIT_TS") }, BUILDER(Create_func_trt<TR_table::FLD_COMMIT_TS>)}, + { { C_STRING_WITH_LEN("TRT_ISO_LEVEL") }, BUILDER(Create_func_trt<TR_table::FLD_ISO_LEVEL>)}, + { { C_STRING_WITH_LEN("TRT_TRX_ID") }, BUILDER(Create_func_trt<TR_table::FLD_TRX_ID>)}, + { { C_STRING_WITH_LEN("TRT_TRX_SEES") }, BUILDER(Create_func_trt_trx_sees<Item_func_trt_trx_sees>)}, + { { C_STRING_WITH_LEN("TRT_TRX_SEES_EQ") }, BUILDER(Create_func_trt_trx_sees<Item_func_trt_trx_sees_eq>)}, { {0, 0}, NULL} }; |