summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2015-09-22 21:59:18 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2015-10-12 11:53:07 +0200
commit92271c78b6c78b1a0248ce5d1c96326b930de610 (patch)
tree61e0a1806c33eb1b638a71822f55c440d61e9e85 /CMakeLists.txt
parente19a6f3dca7509eb8e042796a9311dba937ad9d7 (diff)
downloadmariadb-git-92271c78b6c78b1a0248ce5d1c96326b930de610.tar.gz
MDEV-8087: Server crashed in Time_and_counter_tracker::incr_loops
Problem: Procedure which uses stack of views first executed without most deep view. It fails but one view cached (as well as whole procedure). Then simultaniusely create the second view we lack and execute the procedure. In the beginning of procedure execution the view is not yet created so procedure used as it was cached (cache was not invalidated). But by the time we are trying to use most deep view it is already created. The problem with the view is that thd->select_number (first view was not parsed) so second view will get the same number. The fix is in keeping the thd->select_number correct even if we use cached views. In the proposed solution (to keep it simple) counter can be bigger then should but it should not create problem because numbers are still unique and situation is very rare.
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions