summaryrefslogtreecommitdiff
path: root/sql/sql_string.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@oracle.com>2013-03-12 13:42:12 +0200
committerMarko Mäkelä <marko.makela@oracle.com>2013-03-12 13:42:12 +0200
commitdaa28126f5740ba88d513f83f13927a56b42addd (patch)
tree22095daaf811d5367e564a55eab93df31fce564a /sql/sql_string.h
parent893a97e40479b4256b8bad187f55e96b8ec3b79f (diff)
downloadmariadb-git-daa28126f5740ba88d513f83f13927a56b42addd.tar.gz
Bug#16463505 PESSIMISTIC PAGE_ZIP_AVAILABLE() MAY CAUSE INFINITE PAGE SPLIT
For a fresh insert, page_zip_available() was counting some fields twice. In the worst case, the compressed page size grows by PAGE_ZIP_DIR_SLOT_SIZE plus the size of the record that is being inserted. The size of the record already includes the fields that will be stored in the uncompressed portion of the compressed page. page_zip_get_trailer_len(): Remove the output parameter entry_size, because no caller is interested in it. page_zip_max_ins_size(), page_zip_available(): Assume that the page grows by PAGE_ZIP_DIR_SLOT_SIZE and the record size (which includes the fields that would be stored in the uncompressed portion of the page). rb#2169 approved by Sunny Bains
Diffstat (limited to 'sql/sql_string.h')
0 files changed, 0 insertions, 0 deletions