You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
2.7 KiB

  1. /* Copyright (C) 2014 SkySQL Ab.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation; version 2 of the License.
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License along
  10. with this program; if not, write to the Free Software Foundation, Inc.,
  11. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
  12. #include <my_global.h>
  13. #include <sql_class.h>
  14. #include <mysql/service_wsrep.h>
  15. my_bool wsrep_thd_is_BF(THD *, my_bool)
  16. { return 0; }
  17. int wsrep_trx_order_before(THD *, THD *)
  18. { return 0; }
  19. enum wsrep_conflict_state wsrep_thd_conflict_state(THD *, my_bool)
  20. { return NO_CONFLICT; }
  21. int wsrep_is_wsrep_xid(const XID*)
  22. { return 0; }
  23. bool wsrep_prepare_key(const uchar*, size_t, const uchar*, size_t, struct wsrep_buf*, size_t*)
  24. { return 0; }
  25. struct wsrep *get_wsrep()
  26. { return 0; }
  27. my_bool get_wsrep_certify_nonPK()
  28. { return 0; }
  29. my_bool get_wsrep_debug()
  30. { return 0; }
  31. my_bool get_wsrep_drupal_282555_workaround()
  32. { return 0; }
  33. my_bool get_wsrep_load_data_splitting()
  34. { return 0; }
  35. my_bool get_wsrep_log_conflicts()
  36. { return 0; }
  37. long get_wsrep_protocol_version()
  38. { return 0; }
  39. my_bool wsrep_aborting_thd_contains(THD *)
  40. { return 0; }
  41. void wsrep_aborting_thd_enqueue(THD *)
  42. { }
  43. bool wsrep_consistency_check(THD *)
  44. { return 0; }
  45. void wsrep_lock_rollback()
  46. { }
  47. int wsrep_on(THD *thd)
  48. { return 0; }
  49. void wsrep_post_commit(THD*, bool)
  50. { }
  51. enum wsrep_trx_status wsrep_run_wsrep_commit(THD *, handlerton *, bool)
  52. { return WSREP_TRX_ERROR; }
  53. void wsrep_thd_LOCK(THD *)
  54. { }
  55. void wsrep_thd_UNLOCK(THD *)
  56. { }
  57. void wsrep_thd_awake(THD *, my_bool)
  58. { }
  59. const char *wsrep_thd_conflict_state_str(THD *)
  60. { return 0; }
  61. enum wsrep_exec_mode wsrep_thd_exec_mode(THD *)
  62. { return LOCAL_STATE; }
  63. const char *wsrep_thd_exec_mode_str(THD *)
  64. { return NULL; }
  65. enum wsrep_conflict_state wsrep_thd_get_conflict_state(THD *)
  66. { return NO_CONFLICT; }
  67. my_bool wsrep_thd_is_wsrep(THD *)
  68. { return 0; }
  69. char *wsrep_thd_query(THD *)
  70. { return 0; }
  71. enum wsrep_query_state wsrep_thd_query_state(THD *)
  72. { return QUERY_IDLE; }
  73. const char *wsrep_thd_query_state_str(THD *)
  74. { return 0; }
  75. int wsrep_thd_retry_counter(THD *)
  76. { return 0; }
  77. void wsrep_thd_set_conflict_state(THD *, enum wsrep_conflict_state)
  78. { }
  79. longlong wsrep_thd_trx_seqno(THD *)
  80. { return -1; }
  81. struct wsrep_ws_handle* wsrep_thd_ws_handle(THD *)
  82. { return 0; }
  83. int wsrep_trx_is_aborting(THD *)
  84. { return 0; }
  85. void wsrep_unlock_rollback()
  86. { }