[to #2024102100104749452] fix: add ObReqTimeGuard to ObPLPackageGuard
This commit is contained in:
parent
7955b54ff0
commit
870f539145
@ -15,6 +15,7 @@
|
||||
|
||||
#include "sql/plan_cache/ob_cache_object_factory.h"
|
||||
#include "pl/dblink/ob_pl_dblink_guard.h"
|
||||
#include "observer/ob_req_time_service.h"
|
||||
|
||||
namespace oceanbase
|
||||
{
|
||||
@ -24,7 +25,10 @@ namespace pl
|
||||
class ObPLPackageGuard
|
||||
{
|
||||
public:
|
||||
ObPLPackageGuard(uint64_t tenant_id) : alloc_(), dblink_guard_(alloc_)
|
||||
ObPLPackageGuard(uint64_t tenant_id)
|
||||
: alloc_(),
|
||||
dblink_guard_(alloc_),
|
||||
req_time_guard_()
|
||||
{
|
||||
lib::ObMemAttr attr;
|
||||
attr.label_ = "PLPKGGuard";
|
||||
@ -48,6 +52,7 @@ public:
|
||||
ObPLDbLinkGuard dblink_guard_;
|
||||
private:
|
||||
common::hash::ObHashMap<uint64_t, sql::ObCacheObjGuard*> map_;
|
||||
observer::ObReqTimeGuard req_time_guard_;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user