Skip to content

Commit

Permalink
Remove meta table entries even during startup. This is necessary sinc…
Browse files Browse the repository at this point in the history
…e commit h2database@74b1b25 changes the behavior of `addMeta()` in the same way.

Fixes h2database#3301.
  • Loading branch information
t-pa committed Jan 25, 2022
1 parent 465399f commit e95ff65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h2/src/main/org/h2/engine/Database.java
Expand Up @@ -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);
Expand Down

0 comments on commit e95ff65

Please sign in to comment.