From 7dcdd322f73fa27c9c8d5a75be11a190f11bfa08 Mon Sep 17 00:00:00 2001 From: "darion.yaphet" Date: Sat, 8 Jan 2022 14:38:40 +0800 Subject: [PATCH] fix meta crash after create space --- src/meta/processors/parts/CreateSpaceProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta/processors/parts/CreateSpaceProcessor.cpp b/src/meta/processors/parts/CreateSpaceProcessor.cpp index 80f96ee2856..a2b3b0cf396 100644 --- a/src/meta/processors/parts/CreateSpaceProcessor.cpp +++ b/src/meta/processors/parts/CreateSpaceProcessor.cpp @@ -193,7 +193,7 @@ void CreateSpaceProcessor::process(const cpp2::CreateSpaceReq& req) { auto key = MetaKeyUtils::hostKey(host.host, host.port); auto ret = doGet(key); if (!nebula::ok(ret)) { - code = nebula::error(zoneValueRet); + code = nebula::error(ret); LOG(ERROR) << "Get host " << host << " failed."; break; }