File Dont-delete-mariadb-log-files.patch of Package akonadi4-runtime

From aebb20a082d05b36458008fedff4397f022c3ffa Mon Sep 17 00:00:00 2001
From: Antonio Rojas <arojas@archlinux.org>
Date: Sun, 19 Jun 2022 12:50:00 +0000
Subject: [PATCH] Don't delete mariadb log files

The ib_logfile0 file is mandatory in MariaDB 10.8 [1] so akonadi deleting it on upgrade breaks the database self-check and prevents akonadi from working

[1] https://jira.mariadb.org/browse/MDEV-14425

BUG: 454948
FIXED-IN: 22.04.3
---
 src/server/storage/dbconfigmysql.cpp | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/server/storage/dbconfigmysql.cpp b/src/server/storage/dbconfigmysql.cpp
index 8c5a52628..35fffd865 100644
--- a/server/src/storage/dbconfigmysql.cpp
+++ b/server/src/storage/dbconfigmysql.cpp
@@ -282,12 +282,6 @@ bool DbConfigMysql::startInternalServer()
     QProcess::execute( mMysqlInstallDbPath, arguments );
   }
 
-  // clear mysql ib_logfile's in case innodb_log_file_size option changed in last confUpdate
-  if ( confUpdate ) {
-    QFile( dataDir + QDir::separator() + QString::fromLatin1( "ib_logfile0" ) ).remove();
-    QFile( dataDir + QDir::separator() + QString::fromLatin1( "ib_logfile1" ) ).remove();
-  }
-
   // synthesize the mysqld command
   QStringList arguments;
   arguments << QString::fromLatin1( "--defaults-file=%1/mysql.conf" ).arg( akDir );
-- 
GitLab

openSUSE Build Service is sponsored by