Commit d92d0cdb authored by Antonio Rojas's avatar Antonio Rojas Committed by Sandro Knauß
Browse files

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
parent 75702397
Pipeline #192831 passed with stage
in 9 minutes and 15 seconds
......@@ -390,12 +390,6 @@ bool DbConfigMysql::startInternalServer()
}
}
// clear mysql ib_logfile's in case innodb_log_file_size option changed in last confUpdate
if (confUpdate) {
QFile(dataDir + QDir::separator() + QLatin1String("ib_logfile0")).remove();
QFile(dataDir + QDir::separator() + QLatin1String("ib_logfile1")).remove();
}
qCDebug(AKONADISERVER_LOG) << "Executing:" << mMysqldPath << arguments.join(QLatin1Char(' '));
mDatabaseProcess = new QProcess;
mDatabaseProcess->start(mMysqldPath, arguments);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment