the resource management module has not been allocated, return OB_EAGAIN

This commit is contained in:
obdev 2024-06-21 09:16:23 +00:00 committed by ob-robot
parent 7e7296cec8
commit 2724fb32a8
2 changed files with 10 additions and 3 deletions

View File

@ -273,7 +273,7 @@ int ObTableLoadResourceService::local_apply_resource(ObDirectLoadResourceApplyAr
ret = OB_ERR_SYS;
LOG_WARN("null table load resource service", KR(ret));
} else if(OB_ISNULL(service->resource_manager_)) {
ret = OB_ERR_SYS;
ret = OB_EAGAIN;
LOG_WARN("resource_manager_ is null", KR(ret));
} else {
ret = service->resource_manager_->apply_resource(arg, res);
@ -290,7 +290,7 @@ int ObTableLoadResourceService::local_release_resource(ObDirectLoadResourceRelea
ret = OB_ERR_SYS;
LOG_WARN("null table load resource service", KR(ret));
} else if(OB_ISNULL(service->resource_manager_)) {
ret = OB_ERR_SYS;
ret = OB_EAGAIN;
LOG_WARN("resource_manager_ is null", KR(ret));
} else {
ret = service->resource_manager_->release_resource(arg);
@ -307,7 +307,7 @@ int ObTableLoadResourceService::local_update_resource(ObDirectLoadResourceUpdate
ret = OB_ERR_SYS;
LOG_WARN("null table load resource service", KR(ret));
} else if(OB_ISNULL(service->resource_manager_)) {
ret = OB_ERR_SYS;
ret = OB_EAGAIN;
LOG_WARN("resource_manager_ is null", KR(ret));
} else {
ret = service->resource_manager_->update_resource(arg);

7
test/.obcdc_conf Normal file
View File

@ -0,0 +1,7 @@
build_target=obcdc,obcdc_tailf
code_path=src/logservice/libobcdc/
output_path=src/logservice/libobcdc/
so_name=libobcdc.so
so_name_V=libobcdc.so.4
so_name_v=libobcdc.so.4.3.2.0
tailf_name=obcdc_tailf