Roman Nozdrin
287b2ba7bd
MCOL-3247 CS uses thread plugin variables since MCOL-1101 that aren't
...
good for transmiting cal_connection_info to handler::close_connection().
This variables are then erased in THD::cleanup() and the cal_connection_info
is replaced in handler::delete_table with an empty structure.
handler::close_connection() recevies cal_connection_info with empty cal_conn_hndl.
This patch uses THD::ha_data that is supposed to be used in such occasions.
2019-04-15 19:31:12 +03:00
Andrew Hutchings
f9f966fe96
MCOL-593 Add optional MariaDB replication support
...
This patch will allow MariaDB replication into UM1 when enabling the
following is added to the SystemConfig section of Columnstore.xml:
<ReplicationEnabled>Y</ReplicationEnabled>
The intended use case is to replication from an InnoDB MariaDB server
into ColumnStore. You would need to create the tables on the ColumnStore
slave as "ColumnStore" and the same tables in the master as InnoDB.
At the moment the use case is narrow and could be prone to problems so
this will use the hidden flag until we can improve it.
2019-04-15 14:45:34 +01:00
Roman Nozdrin
34b1d44563
MCOL-3247 Add two utility functions to simplify the code:
...
to log the messages and to forcely close the FEP connection.
2019-04-15 12:37:04 +03:00
Patrick LeBlanc
e51bb230ed
Changed the mergeJournal* usage under the assumption that the
...
metadata contains the merged length, not the object's unmerged
length.
2019-04-12 17:23:59 -05:00
Patrick LeBlanc
979fb573b4
Fix to the rwlock impl; need to lock around checking status.
2019-04-12 15:32:03 -05:00
Patrick LeBlanc
6b1717dd6a
Merge branch 'develop' of github.com:pleblanc1976/storage-manager into develop
2019-04-12 15:12:27 -05:00
Patrick LeBlanc
5443f8662c
Checkpointing some paranoid assertions & some fixes I noticed.
2019-04-12 15:08:01 -05:00
Ben Thompson
081a4ad11b
append/write newObject shouldn't always point at data start
2019-04-12 11:29:45 -05:00
Patrick LeBlanc
308a25c22b
Fixed an off by one error in some brittle path manipulation.
...
Need robustify that once we figure out the bigger
problems.
2019-04-11 17:51:04 -05:00
Patrick LeBlanc
27ac1c85a0
Saw a bug in the loop to prune the fds to poll on, rewrote the loop.
2019-04-11 16:17:47 -05:00
David Hall
f1b908abeb
MCOL-2091 Special UDAF reset code for multi-distinct queries
2019-04-11 15:44:46 -05:00
Andrew Hutchings
8825c0928b
Merge pull request #730 from mariadb-corporation/MCOL-1559
...
Mcol 1559
2019-04-11 08:00:02 +01:00
Patrick LeBlanc
46163c129a
Neutered all of the excessive snapshotting that was going on.
2019-04-10 17:53:05 -05:00
Patrick LeBlanc
c9d6730639
Had to replace boost::split wrt key manipulation.
2019-04-10 16:43:18 -05:00
Patrick LeBlanc
dfc29fa833
Eventually found the problem with rename(). Was calling
...
::unlink() instead of our unlink/remove.
2019-04-10 15:01:29 -05:00
David Hall
28e743bf38
MCOL-1559 remove unused boost/trim header
2019-04-10 08:46:15 -05:00
Andrew Hutchings
67b42acc9c
Merge pull request #729 from mariadb-corporation/MCOL-2061
...
MCOL-2061 Add upgrade path to rebuild FRM files
2019-04-10 04:43:24 +01:00
Patrick LeBlanc
c0f93d904a
Fixed a bug where the BRM would open the journal for reading when
...
it should be have open for writing. Not sure how that ever worked.
2019-04-09 17:34:30 -05:00
David Hall
d78944d9ff
MCOL-1559 backout trim before setting compare. Shouldn't do this in all cases.
2019-04-09 17:08:03 -05:00
David Hall
b6484dda4a
MCOL-1559 trim constant varchar string before adding filter
2019-04-09 16:57:21 -05:00
David Hall
e2cb644484
MCOL-1559 trailing space compare
2019-04-09 16:34:45 -05:00
Patrick LeBlanc
6e6cfdb59b
The BRM structs aren't using IDBDataFile consistently.
...
Testing whether forcing them to use IDBDataFiles breaks anything.
2019-04-09 15:07:00 -05:00
David Hall
e71378d719
Merge branch 'develop-1.2' into MCOL-1559
2019-04-09 13:11:17 -05:00
David Hall
5b581f53cb
MCOL-1559 trailing space compare
2019-04-09 13:09:29 -05:00
Patrick LeBlanc
2b9e7facd2
Merge remote-tracking branch 'upstream/develop' into S3-project
2019-04-09 10:28:31 -05:00
Patrick LeBlanc
e060cce496
Updated ref for storage-manager.
2019-04-09 10:27:32 -05:00
Patrick LeBlanc
867c12f07f
Fixed a bug in the cache.
2019-04-09 09:41:26 -05:00
Ben Thompson
cf678170ca
fixes for write and finish append. add append unit_test cases.
2019-04-08 16:34:48 -05:00
Patrick LeBlanc
9b82b3b0ba
Fixed a probable off-by-one error in the journal merging code.
2019-04-08 15:10:23 -05:00
Patrick LeBlanc
06fe98c1a7
Fixed a boundary condition in metadatafile.
2019-04-08 13:52:21 -05:00
Patrick LeBlanc
88efa1c1f3
Fix to the sync requeuing logic.
2019-04-08 10:48:30 -05:00
Patrick LeBlanc
0be099769b
Cleaned up a kludge, and made the retry behavior requeue a job
...
rather than wait forever to it to work in the same thread.
2019-04-08 10:40:28 -05:00
Patrick LeBlanc
64bbf44227
Realized Cache::_makeSpace() could deadlock, made a mutex a recursive_mutex.
2019-04-08 10:39:30 -05:00
Patrick LeBlanc
6f234f45c0
More fixes around sync, error handling, and logging.
2019-04-05 16:38:37 -05:00
Patrick LeBlanc
1879499ad3
Fixed a few random things.
2019-04-05 14:10:59 -05:00
Patrick LeBlanc
0d7556811a
Fixed a couple minor things in journal-merging code.
2019-04-05 09:31:25 -05:00
Ben Thompson
7d3924a31a
cleanup warning unit_test
2019-04-04 18:18:13 -05:00
Ben Thompson
bef4915ea8
Fix some compiler warnings
2019-04-04 17:21:26 -05:00
Ben Thompson
729953c273
Merge branch 'develop' of github.com:pleblanc1976/storage-manager into develop
2019-04-04 17:03:09 -05:00
Ben Thompson
4ec8e12266
Added more complete IOC::write logic fixed metadata bug started IOC::append.
2019-04-04 16:53:11 -05:00
Patrick LeBlanc
d5dfe5ee67
Fixed all compiler warnings. For debugging builds, also made
...
the compiler treat warnings as errors.
2019-04-04 16:52:47 -05:00
Patrick LeBlanc
ac1c5f8aa1
Added an exception handler in Tasks around their ioc calls out of paranoia.
2019-04-04 15:38:47 -05:00
Patrick LeBlanc
806bf6365d
Updated ref of libmarias3
2019-04-04 13:30:36 -05:00
Patrick LeBlanc
5f8e1513e5
Made IOC::copyFile() update metadata through replicator
2019-04-04 13:30:13 -05:00
Patrick LeBlanc
c4ebe6958e
Reversed some changes I made for debugging.
2019-04-04 12:59:27 -05:00
Patrick LeBlanc
a3789bbe5c
Added add'l copyFile tests, fixed a bug.
2019-04-04 12:43:59 -05:00
Patrick LeBlanc
fe2c5b64d0
Added a couple assertions in Cache to keep us honest during testing.
...
Added a 'real' test for IOC::copyFile(). Looks good, will merge it.
2019-04-04 11:06:17 -05:00
Patrick LeBlanc
67ad5f445e
Updated the unit test for copytask, fixed up IOC::copyFile().
2019-04-04 10:22:22 -05:00
Andrew Hutchings
9d53483d16
Merge pull request #726 from mariadb-corporation/MCOL-2267
...
MCOL-2267 allow for long double in row::equals()
2019-04-04 16:13:07 +01:00
Andrew Hutchings
6f15c97591
MCOL-2061 Add upgrade path to rebuild FRM files
...
A major upgrade (1.1 -> 1.2 for example) may have issues due to stale
FRM table IDs. This commit adds a stored procedure that changes the
table comment to empty on every ColumnStore table to repair the IDs.
The user should run this as part of the upgrade procedure between major
versions.
2019-04-04 15:32:38 +01:00