From b0765ad056e9f60444d2cc1196e153472d84648b Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 11 Jan 2023 12:55:20 +0800 Subject: [PATCH] chore: improve the code --- src/catalog/src/error.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/catalog/src/error.rs b/src/catalog/src/error.rs index 89c2fa379a6c..a2b1657642bd 100644 --- a/src/catalog/src/error.rs +++ b/src/catalog/src/error.rs @@ -142,15 +142,6 @@ pub enum Error { source: table::error::Error, }, - #[snafu(display( - "Failed to delete table creation record to system catalog, source: {}", - source - ))] - DeleteCatalogRecord { - #[snafu(backtrace)] - source: table::error::Error, - }, - #[snafu(display("Illegal catalog manager state: {}", msg))] IllegalManagerState { backtrace: Backtrace, msg: String }, @@ -246,7 +237,6 @@ impl ErrorExt for Error { Error::OpenSystemCatalog { source, .. } | Error::CreateSystemCatalog { source, .. } | Error::InsertCatalogRecord { source, .. } - | Error::DeleteCatalogRecord { source, .. } | Error::OpenTable { source, .. } | Error::CreateTable { source, .. } => source.status_code(), Error::MetaSrv { source, .. } => source.status_code(),