diff options
author | Jacob Mathew <jacob.mathew@mariadb.com> | 2018-07-09 16:09:20 -0700 |
---|---|---|
committer | Jacob Mathew <jacob.mathew@mariadb.com> | 2018-07-09 16:09:20 -0700 |
commit | 813b7398500f8d216c11da9b92135048a03f3227 (patch) | |
tree | baf2ea69ef7b22db8c80bdff18b79eb6bdbf9652 /storage/spider/spd_include.h | |
parent | bbf780efcd26f468ec83ede5ecc18ca6f96802fb (diff) | |
download | mariadb-git-813b7398500f8d216c11da9b92135048a03f3227.tar.gz |
MDEV-16246: insert timestamp into spider table from mysqldump gets wrong time zone.
The problem occurred because the Spider node was incorrectly handling
timestamp values sent to and received from the data nodes.
The problem has been corrected as follows:
- Added logic to set and maintain the UTC time zone on the data nodes.
To prevent timestamp ambiguity, it is necessary for the data nodes to use
a time zone such as UTC which does not have daylight savings time.
- Removed the spider_sync_time_zone configuration variable, which did not
solve the problem and which interfered with the solution.
- Added logic to convert to the UTC time zone all timestamp values sent to
and received from the data nodes. This is done for both unique and
non-unique timestamp columns. It is done for WHERE clauses, applying to
SELECT, UPDATE and DELETE statements, and for UPDATE columns.
- Disabled Spider's use of direct update when any of the columns to update is
a timestamp column. This is necessary to prevent false duplicate key value
errors.
- Added a new test spider.timestamp to thoroughly test Spider's handling of
timestamp values.
Author:
Jacob Mathew.
Reviewer:
Kentoku Shiba.
Cherry-Picked:
Commit 97cc9d3 on branch bb-10.3-MDEV-16246
Diffstat (limited to 'storage/spider/spd_include.h')
-rw-r--r-- | storage/spider/spd_include.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/spider/spd_include.h b/storage/spider/spd_include.h index bede60412e2..79e030b0872 100644 --- a/storage/spider/spd_include.h +++ b/storage/spider/spd_include.h @@ -13,6 +13,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include "tztime.h" + #define SPIDER_DETAIL_VERSION "3.3.13" #define SPIDER_HEX_VERSION 0x0303 |