[Improve](point query) put tablet fetch interface which is high concurrent point query operation to light_work_pool (#17400)

Since the point query lookup is very light weight
This commit is contained in:
lihangyu
2023-03-05 10:36:50 +08:00
committed by GitHub
parent 627b5ee302
commit 59bf305c5d

View File

@ -542,7 +542,7 @@ void PInternalServiceImpl::tablet_fetch_data(google::protobuf::RpcController* co
const PTabletKeyLookupRequest* request,
PTabletKeyLookupResponse* response,
google::protobuf::Closure* done) {
bool ret = _heavy_work_pool.try_offer([this, controller, request, response, done]() {
bool ret = _light_work_pool.try_offer([this, controller, request, response, done]() {
[[maybe_unused]] brpc::Controller* cntl = static_cast<brpc::Controller*>(controller);
brpc::ClosureGuard guard(done);
Status st = _tablet_fetch_data(request, response);