fixed missing error codes

This commit is contained in:
HaHaJeff 2024-05-24 05:24:21 +00:00 committed by ob-robot
parent afe60e724b
commit d43df89ee1
2 changed files with 3 additions and 1 deletions

View File

@ -744,6 +744,7 @@ void ObLogDeliver::handle(void *task)
ret = OB_NOT_INIT;
SERVER_LOG(WARN, "ObLogDeliver not init", K(ret));
} else if (OB_ISNULL(task)) {
ret = OB_ERR_UNEXPECTED;
SERVER_LOG(WARN, "invalid argument", KP(task));
} else {
rpc::ObRequest *req = static_cast<rpc::ObRequest *>(task);

View File

@ -76,6 +76,7 @@ public:
}
if (OB_ISNULL(log_service)) {
ret = OB_ERR_UNEXPECTED;
CLOG_LOG(ERROR, "get_log_service failed");
} else if (FALSE_IT(rpc_proxy = log_service->get_rpc_proxy())) {
} else if (FALSE_IT(self = log_service->get_self())) {
@ -137,4 +138,4 @@ int main(int argc, char **argv)
oceanbase::unittest::replica_num_arg = strtol(argv[4], NULL, 10);
}
RUN_SIMPLE_LOG_CLUSTER_TEST(TEST_NAME);
}
}