From b1f8e690eab9833740c9a463db2ef8dfa176e7af Mon Sep 17 00:00:00 2001 From: rolandqi Date: Tue, 26 Dec 2023 09:02:36 +0000 Subject: [PATCH] bugfix: start wr service before init tenant service. --- src/observer/ob_server.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/observer/ob_server.cpp b/src/observer/ob_server.cpp index 3d1deb228..d8171699e 100644 --- a/src/observer/ob_server.cpp +++ b/src/observer/ob_server.cpp @@ -877,6 +877,12 @@ int ObServer::start() FLOG_INFO("success to start multi tenant"); } + if (FAILEDx(wr_service_.start())) { + LOG_ERROR("failed to start wr service", K(ret)); + } else { + LOG_INFO("success to start wr service"); + } + if (FAILEDx(ObServerCheckpointSlogHandler::get_instance().start())) { LOG_ERROR("fail to start server checkpoint slog handler", KR(ret)); } else { @@ -889,12 +895,6 @@ int ObServer::start() FLOG_INFO("success to start log pool"); } - if (FAILEDx(wr_service_.start())) { - LOG_ERROR("failed to start wr service", K(ret)); - } else { - LOG_INFO("success to start wr service"); - } - if (FAILEDx(try_update_hidden_sys())) { LOG_ERROR("fail to update hidden sys tenant", KR(ret)); } else {