From c22936ca6ad68630f2982a62245b91b11c4fb699 Mon Sep 17 00:00:00 2001 From: Ben Radford Date: Tue, 16 May 2023 13:56:29 +0100 Subject: [PATCH] Do not attempt to migrate to CA schema when read-only. --- src/libstore/local-store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index 94176c62f..5d9e96441 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -348,7 +348,7 @@ LocalStore::LocalStore(const Params & params) else openDB(*state, false); - if (experimentalFeatureSettings.isEnabled(Xp::CaDerivations)) { + if (!readOnly && experimentalFeatureSettings.isEnabled(Xp::CaDerivations)) { migrateCASchema(state->db, dbDir + "/ca-schema", globalLock); }