summaryrefslogtreecommitdiff
path: root/storage/rocksdb/rdb_index_merge.cc
diff options
context:
space:
mode:
authorVarun Gupta <varun.gupta@mariadb.com>2020-06-10 18:42:47 +0530
committerVarun Gupta <varun.gupta@mariadb.com>2020-06-10 18:45:34 +0530
commit9d1809640149fb5b4ce44d1716432726ae085975 (patch)
treefe3b63f76b4bf46d3a44da4d2e5d8213baae8226 /storage/rocksdb/rdb_index_merge.cc
parent648b54746c2dbad98f3e09609e1217be918286dd (diff)
downloadmariadb-git-10.5-mdev22819.tar.gz
MDEV-22819: Wrong result or Assertion `ix > 0' failed in read_to_buffer upon select with GROUP BY and GROUP_CONCAT10.5-mdev22819
In the merge_buffers phase for sorting, the sort buffer size is divided between the number of chunks. The chunks have a start and end position (m_buffer_start and m_buffer_end). Then we read the as many records that fit in this buffer for a chunk of the file. The issue here was we were resetting the end of buffer(m_buffer_end) to the number of bytes that was read, this was causing a problem because with dynamic size of sort keys it is possible that later we would not be able to accommodate even one key inside a chunk of file. So the fix was to not reset the end of buffer for a chunk of file.
Diffstat (limited to 'storage/rocksdb/rdb_index_merge.cc')
0 files changed, 0 insertions, 0 deletions