diff --git a/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/schema/DefaultSchema.kt b/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/schema/DefaultSchema.kt index 3b1a25b34..0f766961e 100644 --- a/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/schema/DefaultSchema.kt +++ b/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/schema/DefaultSchema.kt @@ -228,7 +228,9 @@ class DefaultSchema(override val name: Name.SchemaName, override val parent: Def /* Resets the tuple ID counter. */ if (!SequenceCatalogueEntries.reset(name.tid(), this@DefaultSchema.catalogue, this.context.xodusTx)) { - throw DatabaseException.DataCorruptionException("DROP entity $name failed: Failed to delete tuple ID sequence entry.") + if (SequenceCatalogueEntries.read(name.tid(), this@DefaultSchema.catalogue, this.context.xodusTx) == null) { + throw DatabaseException.DataCorruptionException("DROP entity $name failed: Failed to reset tuple ID sequence entry.") + } } }