From 032b6030111b18ee5f25a90d03bf1d46784eb5a9 Mon Sep 17 00:00:00 2001 From: Alek Westover Date: Thu, 29 Jun 2023 10:55:02 -0400 Subject: [PATCH] Fix: Wrong Enum Variant (#4589) --- pageserver/src/pgdatadir_mapping.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pageserver/src/pgdatadir_mapping.rs b/pageserver/src/pgdatadir_mapping.rs index 998c199ba6..a54cf9f91b 100644 --- a/pageserver/src/pgdatadir_mapping.rs +++ b/pageserver/src/pgdatadir_mapping.rs @@ -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.