summaryrefslogtreecommitdiff
path: root/mysql-test/t/gis-rtree.test
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-09-17 09:14:20 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2021-09-17 09:14:20 +0300
commita8b16e921e6bb73b1fff5486314b2d89b9d286aa (patch)
tree7a9ea08980446d462b800470dc755176affdbcbc /mysql-test/t/gis-rtree.test
parent04a043ff8699fa501e8cccf6138df428922a3d29 (diff)
downloadmariadb-git-bb-10.6-MDEV-26623.tar.gz
MDEV-26623 Possible race condition between statistics and bulk insertbb-10.6-MDEV-26623
When computing statistics, let us play it safe and check whether an insert into an empty table is in progress, once we have acquired the root page latch. If yes, let us pretend that the table is empty, just like MVCC reads would do. It is unlikely that this race condition could lead into any crashes before MDEV-24621, because the index tree structure should be protected by the page latches. But, at least we can avoid some busy work and return earlier. As part of this, some code that is only used for statistics calculation is being moved into static functions in that compilation unit.
Diffstat (limited to 'mysql-test/t/gis-rtree.test')
0 files changed, 0 insertions, 0 deletions