Browse Source

fix for MariaDB 10.0.8

pull/22/head
Kentoku SHIBA 12 years ago
parent
commit
da522fc1cd
  1. 2
      storage/spider/ha_spider.cc
  2. 2
      storage/spider/ha_spider.h
  3. 1
      storage/spider/hs_client/socket.cpp
  4. 2
      storage/spider/spd_conn.cc
  5. 2
      storage/spider/spd_conn.h
  6. 2
      storage/spider/spd_copy_tables.cc
  7. 2
      storage/spider/spd_copy_tables.h
  8. 2
      storage/spider/spd_db_conn.cc
  9. 2
      storage/spider/spd_db_conn.h
  10. 2
      storage/spider/spd_db_handlersocket.cc
  11. 2
      storage/spider/spd_db_handlersocket.h
  12. 2
      storage/spider/spd_db_include.h
  13. 2
      storage/spider/spd_db_mysql.cc
  14. 2
      storage/spider/spd_db_mysql.h
  15. 2
      storage/spider/spd_db_oracle.cc
  16. 2
      storage/spider/spd_db_oracle.h
  17. 2
      storage/spider/spd_direct_sql.cc
  18. 2
      storage/spider/spd_direct_sql.h
  19. 2
      storage/spider/spd_err.h
  20. 2
      storage/spider/spd_i_s.cc
  21. 13
      storage/spider/spd_include.h
  22. 2
      storage/spider/spd_malloc.cc
  23. 2
      storage/spider/spd_malloc.h
  24. 2
      storage/spider/spd_param.cc
  25. 2
      storage/spider/spd_param.h
  26. 2
      storage/spider/spd_ping_table.cc
  27. 2
      storage/spider/spd_ping_table.h
  28. 2
      storage/spider/spd_sys_table.cc
  29. 2
      storage/spider/spd_sys_table.h
  30. 2
      storage/spider/spd_table.cc
  31. 2
      storage/spider/spd_table.h
  32. 14
      storage/spider/spd_trx.cc
  33. 2
      storage/spider/spd_trx.h
  34. 2
      storage/spider/spd_udf.cc
  35. 2
      storage/spider/spd_udf.h

2
storage/spider/ha_spider.cc

@ -1,4 +1,4 @@
/* Copyright (C) 2008-2013 Kentoku Shiba
/* Copyright (C) 2008-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/ha_spider.h

@ -1,4 +1,4 @@
/* Copyright (C) 2008-2013 Kentoku Shiba
/* Copyright (C) 2008-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

1
storage/spider/hs_client/socket.cpp

@ -8,6 +8,7 @@
*/
#ifndef __WIN__
#include <sys/types.h>
#include <sys/un.h>
#endif

2
storage/spider/spd_conn.cc

@ -1,4 +1,4 @@
/* Copyright (C) 2008-2013 Kentoku Shiba
/* Copyright (C) 2008-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_conn.h

@ -1,4 +1,4 @@
/* Copyright (C) 2008-2013 Kentoku Shiba
/* Copyright (C) 2008-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_copy_tables.cc

@ -1,4 +1,4 @@
/* Copyright (C) 2009-2013 Kentoku Shiba
/* Copyright (C) 2009-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_copy_tables.h

@ -1,4 +1,4 @@
/* Copyright (C) 2010-2013 Kentoku Shiba
/* Copyright (C) 2010-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_db_conn.cc

@ -1,4 +1,4 @@
/* Copyright (C) 2008-2013 Kentoku Shiba
/* Copyright (C) 2008-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_db_conn.h

@ -1,4 +1,4 @@
/* Copyright (C) 2008-2013 Kentoku Shiba
/* Copyright (C) 2008-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_db_handlersocket.cc

@ -1,4 +1,4 @@
/* Copyright (C) 2012-2013 Kentoku Shiba
/* Copyright (C) 2012-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_db_handlersocket.h

@ -1,4 +1,4 @@
/* Copyright (C) 2012-2013 Kentoku Shiba
/* Copyright (C) 2012-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_db_include.h

@ -1,4 +1,4 @@
/* Copyright (C) 2008-2013 Kentoku Shiba
/* Copyright (C) 2008-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_db_mysql.cc

@ -1,4 +1,4 @@
/* Copyright (C) 2012-2013 Kentoku Shiba
/* Copyright (C) 2012-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_db_mysql.h

@ -1,4 +1,4 @@
/* Copyright (C) 2012-2013 Kentoku Shiba
/* Copyright (C) 2012-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_db_oracle.cc

@ -1,4 +1,4 @@
/* Copyright (C) 2012-2013 Kentoku Shiba
/* Copyright (C) 2012-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_db_oracle.h

@ -1,4 +1,4 @@
/* Copyright (C) 2012-2013 Kentoku Shiba
/* Copyright (C) 2012-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_direct_sql.cc

@ -1,4 +1,4 @@
/* Copyright (C) 2009-2013 Kentoku Shiba
/* Copyright (C) 2009-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_direct_sql.h

@ -1,4 +1,4 @@
/* Copyright (C) 2009-2013 Kentoku Shiba
/* Copyright (C) 2009-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_err.h

@ -1,4 +1,4 @@
/* Copyright (C) 2008-2013 Kentoku Shiba
/* Copyright (C) 2008-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_i_s.cc

@ -1,4 +1,4 @@
/* Copyright (C) 2012-2013 Kentoku Shiba
/* Copyright (C) 2012-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

13
storage/spider/spd_include.h

@ -1,4 +1,4 @@
/* Copyright (C) 2008-2013 Kentoku Shiba
/* Copyright (C) 2008-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -13,7 +13,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#define SPIDER_DETAIL_VERSION "3.1.15"
#define SPIDER_DETAIL_VERSION "3.1.16"
#define SPIDER_HEX_VERSION 0x0301
#if MYSQL_VERSION_ID < 50500
@ -63,8 +63,8 @@
#endif
#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100004
#define spider_stmt_da_message(A) (A)->get_stmt_da()->message()
#define spider_stmt_da_sql_errno(A) (A)->get_stmt_da()->sql_errno()
#define spider_stmt_da_message(A) thd_get_error_message(A)
#define spider_stmt_da_sql_errno(A) thd_get_error_number(A)
#define spider_user_defined_key_parts(A) (A)->user_defined_key_parts
#define SPIDER_CAN_BG_UPDATE (1LL << 39)
#define SPIDER_ALTER_ADD_PARTITION Alter_info::ALTER_ADD_PARTITION
@ -80,8 +80,13 @@
#define spider_stmt_da_message(A) (A)->main_da.message()
#define spider_stmt_da_sql_errno(A) (A)->main_da.sql_errno()
#else
#if MYSQL_VERSION_ID < 50600
#define spider_stmt_da_message(A) (A)->stmt_da->message()
#define spider_stmt_da_sql_errno(A) (A)->stmt_da->sql_errno()
#else
#define spider_stmt_da_message(A) (A)->get_stmt_da()->message()
#define spider_stmt_da_sql_errno(A) (A)->get_stmt_da()->sql_errno()
#endif
#endif
#define spider_user_defined_key_parts(A) (A)->key_parts
#define SPIDER_ALTER_ADD_PARTITION ALTER_ADD_PARTITION

2
storage/spider/spd_malloc.cc

@ -1,4 +1,4 @@
/* Copyright (C) 2012-2013 Kentoku Shiba
/* Copyright (C) 2012-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_malloc.h

@ -1,4 +1,4 @@
/* Copyright (C) 2012-2013 Kentoku Shiba
/* Copyright (C) 2012-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_param.cc

@ -1,4 +1,4 @@
/* Copyright (C) 2008-2013 Kentoku Shiba
/* Copyright (C) 2008-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_param.h

@ -1,4 +1,4 @@
/* Copyright (C) 2008-2013 Kentoku Shiba
/* Copyright (C) 2008-2014 Kentoku Shiba
This program is free software); you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_ping_table.cc

@ -1,4 +1,4 @@
/* Copyright (C) 2009-2013 Kentoku Shiba
/* Copyright (C) 2009-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_ping_table.h

@ -1,4 +1,4 @@
/* Copyright (C) 2009-2013 Kentoku Shiba
/* Copyright (C) 2009-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_sys_table.cc

@ -1,4 +1,4 @@
/* Copyright (C) 2008-2013 Kentoku Shiba
/* Copyright (C) 2008-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_sys_table.h

@ -1,4 +1,4 @@
/* Copyright (C) 2008-2013 Kentoku Shiba
/* Copyright (C) 2008-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_table.cc

@ -1,4 +1,4 @@
/* Copyright (C) 2008-2013 Kentoku Shiba
/* Copyright (C) 2008-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_table.h

@ -1,4 +1,4 @@
/* Copyright (C) 2008-2013 Kentoku Shiba
/* Copyright (C) 2008-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

14
storage/spider/spd_trx.cc

@ -1,4 +1,4 @@
/* Copyright (C) 2008-2013 Kentoku Shiba
/* Copyright (C) 2008-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -249,7 +249,7 @@ int spider_trx_another_lock_tables(
SPIDER_BACKUP_DASTATUS;
sql_str.init_calc_mem(188);
sql_str.length(0);
memset(&tmp_spider, 0, sizeof(ha_spider));
memset((void*)&tmp_spider, 0, sizeof(ha_spider));
memset(&tmp_share, 0, sizeof(SPIDER_SHARE));
tmp_spider.share = &tmp_share;
tmp_spider.trx = trx;
@ -295,7 +295,7 @@ int spider_trx_another_flush_tables(
long tmp_link_statuses = SPIDER_LINK_STATUS_OK;
DBUG_ENTER("spider_trx_another_flush_tables");
SPIDER_BACKUP_DASTATUS;
memset(&tmp_spider, 0, sizeof(ha_spider));
memset((void*)&tmp_spider, 0, sizeof(ha_spider));
tmp_share.link_count = 1;
tmp_share.all_link_count = 1;
tmp_share.link_statuses = &tmp_link_statuses;
@ -329,7 +329,7 @@ int spider_trx_all_flush_tables(
long tmp_link_statuses = SPIDER_LINK_STATUS_OK;
DBUG_ENTER("spider_trx_all_flush_tables");
SPIDER_BACKUP_DASTATUS;
memset(&tmp_spider, 0, sizeof(ha_spider));
memset((void*)&tmp_spider, 0, sizeof(ha_spider));
tmp_share.link_count = 1;
tmp_share.all_link_count = 1;
tmp_share.link_statuses = &tmp_link_statuses;
@ -361,7 +361,7 @@ int spider_trx_all_unlock_tables(
ha_spider tmp_spider;
DBUG_ENTER("spider_trx_all_unlock_tables");
SPIDER_BACKUP_DASTATUS;
memset(&tmp_spider, 0, sizeof(ha_spider));
memset((void*)&tmp_spider, 0, sizeof(ha_spider));
tmp_spider.conns = &conn;
tmp_spider.need_mons = &need_mon;
while ((conn = (SPIDER_CONN*) my_hash_element(&trx->trx_conn_hash,
@ -389,7 +389,7 @@ int spider_trx_all_start_trx(
ha_spider tmp_spider;
DBUG_ENTER("spider_trx_all_start_trx");
SPIDER_BACKUP_DASTATUS;
memset(&tmp_spider, 0, sizeof(ha_spider));
memset((void*)&tmp_spider, 0, sizeof(ha_spider));
tmp_spider.trx = trx;
tmp_spider.need_mons = &need_mon;
while ((conn = (SPIDER_CONN*) my_hash_element(&trx->trx_conn_hash,
@ -424,7 +424,7 @@ int spider_trx_all_flush_logs(
long net_write_timeout = 600;
DBUG_ENTER("spider_trx_all_flush_logs");
SPIDER_BACKUP_DASTATUS;
memset(&tmp_spider, 0, sizeof(ha_spider));
memset((void*)&tmp_spider, 0, sizeof(ha_spider));
tmp_share.link_count = 1;
tmp_share.all_link_count = 1;
tmp_share.link_statuses = &tmp_link_statuses;

2
storage/spider/spd_trx.h

@ -1,4 +1,4 @@
/* Copyright (C) 2008-2013 Kentoku Shiba
/* Copyright (C) 2008-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_udf.cc

@ -1,4 +1,4 @@
/* Copyright (C) 2009-2013 Kentoku Shiba
/* Copyright (C) 2009-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

2
storage/spider/spd_udf.h

@ -1,4 +1,4 @@
/* Copyright (C) 2009-2013 Kentoku Shiba
/* Copyright (C) 2009-2014 Kentoku Shiba
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

Loading…
Cancel
Save