mirror of
https://github.com/MariaDB/server.git
synced 2025-07-25 16:39:52 +00:00

buf_pool_t::shrink(): If we run out of pages to evict from buf_pool.LRU, abort the operation. Also, do not leak the spare block that we may have allocated.
15 lines
514 B
Plaintext
15 lines
514 B
Plaintext
--source include/have_innodb.inc
|
|
--source include/have_partition.inc
|
|
call mtr.add_suppression("innodb_buffer_pool_size change aborted");
|
|
CREATE TABLE t (c INT) ENGINE=InnoDB PARTITION BY HASH(c) PARTITIONS 512;
|
|
BEGIN;
|
|
SELECT * FROM t LOCK IN SHARE MODE;
|
|
SET @save_size = @@GLOBAL.innodb_buffer_pool_size;
|
|
--error 0,ER_WRONG_USAGE
|
|
SET GLOBAL innodb_buffer_pool_size=6291456;
|
|
COMMIT;
|
|
--error 0,ER_WRONG_USAGE
|
|
SET GLOBAL innodb_buffer_pool_size=6291456;
|
|
SET GLOBAL innodb_buffer_pool_size = @save_size;
|
|
DROP TABLE t;
|