summaryrefslogtreecommitdiff
path: root/libmariadb
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2018-05-15 12:34:10 +0300
committerSergei Petrunia <psergey@askmonty.org>2018-05-15 12:34:10 +0300
commit21bcfeb9961ca52a06c995cc5d6a76bd7f3fec09 (patch)
treed41f8576c6e6b6ebc20f2b8aa4ec57957e788fd4 /libmariadb
parent681e8ca35e3439a39d2069d8f3ebc61d5e18515b (diff)
downloadmariadb-git-21bcfeb9961ca52a06c995cc5d6a76bd7f3fec09.tar.gz
MDEV-16155: UPDATE on RocksDB table with unique constraint does not work
RocksDB now supports "iterator bounds" which are min and max keys that an iterator is interested in. Iterator initialization function doesn't copy the keys, though, it keeps pointers to them. So if the buffer space for the keys is used for another iterator (the one for checking for UNIUQE constraint violation in ha_rocksdb::ha_update_row) then one can get incorrect query result. Fixed by using a separate buffer for iterator bounds in the unique constraint violation check.
Diffstat (limited to 'libmariadb')
0 files changed, 0 insertions, 0 deletions