Gentoo Archives: gentoo-dev

From: Piotr Karbowski <slashbeast@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] 2021-11-23-mariadb-database-restore-maybe-required: add item
Date: Thu, 25 Nov 2021 16:22:02
Message-Id: ee7d10f7-9db1-ccdf-6273-270b7168862a@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH] 2021-11-23-mariadb-database-restore-maybe-required: add item by Pacho Ramos
1 Hi,
2
3 On 25/11/2021 16.50, Pacho Ramos wrote:
4 > As a side note, maybe ebuild should add sanity checks (like those from glibc) to
5 > prevent downgrades, otherwise people could still accidentally hit the issue
6
7 You might have valid use cases to downgrade mysql, if you are okay not
8 preserving data. I'd assume it's a common knowledge that downgrade of
9 any data store, be that database or likes like elasticsearch, will
10 corrupt the data.
11
12 To make it actually useful I think we'd need new EAPI feature
13 'downgrade-protection', that unless is explicit ignored like
14 --ignore-downgrade-protection mysql, it would prevent it from happening.
15
16 -- Piotr.

Replies