forked from percona/percona-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace ClockCache with HyperClockCache
Upstream commit ID: facebook/mysql-5.6@09710df PS-8755: Merge percona-202301 (https://jira.percona.com/browse/PS-8755) Summary: This replaces the existing code that enables ClockCache with code that enables HyperClockCache. This is expected to solve block cache contention issues that we've been seeing, making supporting MRR for more scenarios lower priority for us. Reviewed By: pdillinger Differential Revision: D41384156 fbshipit-source-id: f72558deae7161283218fbc4e2263f177adec4f2
- Loading branch information
1 parent
f5d55d1
commit a184a3b
Showing
4 changed files
with
62 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
mysql-test/suite/rocksdb_sys_vars/r/rocksdb_use_hyper_clock_cache_basic.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
CREATE TABLE valid_values (value varchar(255)) ENGINE=myisam; | ||
INSERT INTO valid_values VALUES(1); | ||
INSERT INTO valid_values VALUES(0); | ||
INSERT INTO valid_values VALUES('on'); | ||
INSERT INTO valid_values VALUES('off'); | ||
INSERT INTO valid_values VALUES('true'); | ||
INSERT INTO valid_values VALUES('false'); | ||
CREATE TABLE invalid_values (value varchar(255)) ENGINE=myisam; | ||
INSERT INTO invalid_values VALUES('\'aaa\''); | ||
INSERT INTO invalid_values VALUES('\'bbb\''); | ||
SET @start_global_value = @@global.ROCKSDB_USE_HYPER_CLOCK_CACHE; | ||
SELECT @start_global_value; | ||
@start_global_value | ||
0 | ||
"Trying to set variable @@global.ROCKSDB_USE_HYPER_CLOCK_CACHE to 444. It should fail because it is readonly." | ||
SET @@global.ROCKSDB_USE_HYPER_CLOCK_CACHE = 444; | ||
ERROR HY000: Variable 'rocksdb_use_hyper_clock_cache' is a read only variable | ||
DROP TABLE valid_values; | ||
DROP TABLE invalid_values; |
21 changes: 21 additions & 0 deletions
21
mysql-test/suite/rocksdb_sys_vars/t/rocksdb_use_hyper_clock_cache_basic.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--source include/have_rocksdb.inc | ||
|
||
CREATE TABLE valid_values (value varchar(255)) ENGINE=myisam; | ||
INSERT INTO valid_values VALUES(1); | ||
INSERT INTO valid_values VALUES(0); | ||
INSERT INTO valid_values VALUES('on'); | ||
INSERT INTO valid_values VALUES('off'); | ||
INSERT INTO valid_values VALUES('true'); | ||
INSERT INTO valid_values VALUES('false'); | ||
|
||
CREATE TABLE invalid_values (value varchar(255)) ENGINE=myisam; | ||
INSERT INTO invalid_values VALUES('\'aaa\''); | ||
INSERT INTO invalid_values VALUES('\'bbb\''); | ||
|
||
--let $sys_var=ROCKSDB_USE_HYPER_CLOCK_CACHE | ||
--let $read_only=1 | ||
--let $session=0 | ||
--source ../include/rocksdb_sys_var.inc | ||
|
||
DROP TABLE valid_values; | ||
DROP TABLE invalid_values; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters