From e95ff65a2f2d42c2e6000f73b787abf130ed7ff5 Mon Sep 17 00:00:00 2001 From: t-pa Date: Wed, 26 Jan 2022 00:02:24 +0100 Subject: [PATCH] Remove meta table entries even during startup. This is necessary since commit https://github.com/h2database/h2database/commit/74b1b25d71e78bfa986510cf5ed774c403c4bf2c changes the behavior of `addMeta()` in the same way. Fixes h2database/h2database#3301. --- h2/src/main/org/h2/engine/Database.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h2/src/main/org/h2/engine/Database.java b/h2/src/main/org/h2/engine/Database.java index 6f49bec122..7b830ba0b7 100644 --- a/h2/src/main/org/h2/engine/Database.java +++ b/h2/src/main/org/h2/engine/Database.java @@ -828,7 +828,7 @@ static void unlockMetaDebug(SessionLocal session) { * @param id the id of the object to remove */ public void removeMeta(SessionLocal session, int id) { - if (id > 0 && !starting) { + if (id > 0) { SearchRow r = meta.getRowFactory().createRow(); r.setValue(0, ValueInteger.get(id)); boolean wasLocked = lockMeta(session);