diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-09-11 15:55:30 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-09-17 14:08:41 +0300 |
commit | 00cd53d39aa932718ead738e61d590da28579574 (patch) | |
tree | 9f9eef34bfa0b1b3fa8115ffdbe417f480d7d7df /storage/innobase/btr/btr0cur.cc | |
parent | 852771ba1e41142a84f90e76e4ed228fc7699700 (diff) | |
download | mariadb-git-00cd53d39aa932718ead738e61d590da28579574.tar.gz |
MDEV-23719: Make lock_sys use page_id_t
Since commit 8ccb3caafb7cba0fca12e89c5c9b67a740364fdd it should be
more efficient to use page_id_t rather than two separate variables
for tablespace identifier and page number.
lock_rec_fold(): Replaced with page_id_t::fold().
lock_rec_hash(): Replaced with lock_sys.hash(page_id).
lock_rec_expl_exist_on_page(), lock_rec_get_first_on_page_addr(),
lock_rec_get_first_on_page(): Replaced with lock_sys.get_first().
Diffstat (limited to 'storage/innobase/btr/btr0cur.cc')
-rw-r--r-- | storage/innobase/btr/btr0cur.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/storage/innobase/btr/btr0cur.cc b/storage/innobase/btr/btr0cur.cc index 9c627ecd145..a190c11eb0a 100644 --- a/storage/innobase/btr/btr0cur.cc +++ b/storage/innobase/btr/btr0cur.cc @@ -5423,8 +5423,7 @@ btr_cur_compress_if_useful( const buf_block_t* block = btr_cur_get_block(cursor); /* Check whether page lock prevents the compression */ - if (!lock_test_prdt_page_lock(trx, block->page.id().space(), - block->page.id().page_no())) { + if (!lock_test_prdt_page_lock(trx, block->page.id())) { return(false); } } |