Fix: Wrong Enum Variant (#4589)

This commit is contained in:
Alek Westover
2023-06-29 10:55:02 -04:00
committed by GitHub
parent ca0e0781c8
commit 032b603011

View File

@@ -887,7 +887,7 @@ impl<'a> DatadirModification<'a> {
ctx: &RequestContext,
) -> Result<(), RelationError> {
if rel.relnode == 0 {
return Err(RelationError::AlreadyExists);
return Err(RelationError::InvalidRelnode);
}
// It's possible that this is the first rel for this db in this
// tablespace. Create the reldir entry for it if so.