mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Galera4
This commit is contained in:
committed by
Sergey Vojtovich
parent
382115b992
commit
36a2a185fe
@@ -1804,5 +1804,56 @@ public:
|
||||
Item *get_copy(THD *thd)
|
||||
{ return get_item_copy<Item_temptable_rowid>(thd, this); }
|
||||
};
|
||||
#ifdef WITH_WSREP
|
||||
|
||||
#include "wsrep_api.h"
|
||||
|
||||
class Item_func_wsrep_last_written_gtid: public Item_str_ascii_func
|
||||
{
|
||||
String gtid_str;
|
||||
public:
|
||||
Item_func_wsrep_last_written_gtid(THD *thd): Item_str_ascii_func(thd) {}
|
||||
const char *func_name() const { return "wsrep_last_written_gtid"; }
|
||||
String *val_str_ascii(String *);
|
||||
bool fix_length_and_dec()
|
||||
{
|
||||
max_length= WSREP_GTID_STR_LEN;
|
||||
maybe_null= true;
|
||||
return FALSE;
|
||||
}
|
||||
Item *get_copy(THD *thd)
|
||||
{ return get_item_copy<Item_func_wsrep_last_written_gtid>(thd, this); }
|
||||
};
|
||||
|
||||
class Item_func_wsrep_last_seen_gtid: public Item_str_ascii_func
|
||||
{
|
||||
String gtid_str;
|
||||
public:
|
||||
Item_func_wsrep_last_seen_gtid(THD *thd): Item_str_ascii_func(thd) {}
|
||||
const char *func_name() const { return "wsrep_last_seen_gtid"; }
|
||||
String *val_str_ascii(String *);
|
||||
bool fix_length_and_dec()
|
||||
{
|
||||
max_length= WSREP_GTID_STR_LEN;
|
||||
maybe_null= true;
|
||||
return FALSE;
|
||||
}
|
||||
Item *get_copy(THD *thd)
|
||||
{ return get_item_copy<Item_func_wsrep_last_seen_gtid>(thd, this); }
|
||||
};
|
||||
|
||||
class Item_func_wsrep_sync_wait_upto: public Item_int_func
|
||||
{
|
||||
String value;
|
||||
public:
|
||||
Item_func_wsrep_sync_wait_upto(THD *thd, Item *a): Item_int_func(thd, a) {}
|
||||
Item_func_wsrep_sync_wait_upto(THD *thd, Item *a, Item* b): Item_int_func(thd, a, b) {}
|
||||
const Type_handler *type_handler() const { return &type_handler_string; }
|
||||
const char *func_name() const { return "wsrep_sync_wait_upto_gtid"; }
|
||||
longlong val_int();
|
||||
Item *get_copy(THD *thd)
|
||||
{ return get_item_copy<Item_func_wsrep_sync_wait_upto>(thd, this); }
|
||||
};
|
||||
#endif /* WITH_WSREP */
|
||||
|
||||
#endif /* ITEM_STRFUNC_INCLUDED */
|
||||
|
Reference in New Issue
Block a user