Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/MariaDB/mysql-test/suite/encryption/t/   (MariaDB Server Version 8.1-8.4©)  Datei vom 1.9.2026 mit Größe 1 kB image not shown  

Quelle  innodb-read-only.test  Sprache: unbekannt

 
Spracherkennung für: .test vermutete Sprache: SQL {SQL[84] ABAP[77] Lisp[56]} [Methode: maximale Elemente, drei Dimensionen]

--source suite/encryption/include/have_file_key_management_plugin.inc
--source include/have_innodb.inc
--source include/not_embedded.inc

--echo # Wait max 10 min for key encryption threads to encrypt all spaces
let $cnt=600;
while ($cnt)
{
    let $success=`SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION = 0`;
    if ($success)
    {
        let $cnt=0;
    }
    if (!$success)
    {
        real_sleep 1;
        dec $cnt;
    }
}
if (!$success)
{
    SELECT * FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION;
    SHOW STATUS LIKE 'innodb_encryption%';
    -- die Timeout waiting for encryption threads
}
--echo # Success!

# Server in normal mode
SET GLOBAL innodb_encryption_threads=4;
SET @encryption_threads_running=4;
--error 0,ER_NO_SUCH_TABLE
SELECT COUNT(*) INTO @encrypt_threads_running
FROM performance_schema.threads
WHERE NAME LIKE '%encrypt%';
SELECT @encryption_threads_running;

#
# MDEV-11835: InnoDB: Failing assertion: free_slot != NULL on
# restarting server with encryption and read-only
#
--let $restart_parameters= --innodb-read-only=1 --innodb-encrypt-tables=1 --innodb-log-recovery-start=0
--source include/restart_mysqld.inc

# Server read-only mode
SET GLOBAL innodb_encryption_threads=4;
SET @encryption_threads_running=0;
--error 0,ER_NO_SUCH_TABLE
SELECT COUNT(*) INTO @encryption_threads_running
FROM performance_schema.threads
WHERE NAME LIKE '%encrypt%';
SELECT @encryption_threads_running;
--echo # All done

[Dauer der Verarbeitung: 0.19 Sekunden, vorverarbeitet 2026-10-08]