@@ -117,19 +117,19 @@ void TKqpExecuterTxResult::FillYdb(Ydb::ResultSet* ydbResult, TMaybe<ui64> rowsL
117117
118118TTxAllocatorState::TTxAllocatorState (const IFunctionRegistry* functionRegistry,
119119 TIntrusivePtr<ITimeProvider> timeProvider, TIntrusivePtr<IRandomProvider> randomProvider)
120- : Alloc(__LOCATION__, NKikimr::TAlignedPagePoolCounters(), functionRegistry->SupportsSizedAllocators ())
121- , TypeEnv(Alloc)
120+ : Alloc(std::make_shared<NKikimr::NMiniKQL::TScopedAlloc>( __LOCATION__, NKikimr::TAlignedPagePoolCounters(), functionRegistry->SupportsSizedAllocators () ))
121+ , TypeEnv(* Alloc)
122122 , MemInfo(" TQueryData" )
123- , HolderFactory(Alloc. Ref(), MemInfo, functionRegistry)
123+ , HolderFactory(Alloc-> Ref (), MemInfo, functionRegistry)
124124{
125- Alloc. Release ();
125+ Alloc-> Release ();
126126 TimeProvider = timeProvider;
127127 RandomProvider = randomProvider;
128128}
129129
130130TTxAllocatorState::~TTxAllocatorState ()
131131{
132- Alloc. Acquire ();
132+ Alloc-> Acquire ();
133133}
134134
135135std::pair<NKikimr::NMiniKQL::TType*, NUdf::TUnboxedValue> TTxAllocatorState::GetInternalBindingValue (
@@ -366,7 +366,7 @@ const NKikimrMiniKQL::TParams* TQueryData::GetParameterMiniKqlValue(const TStrin
366366
367367 auto it = Params.find (name);
368368 if (it == Params.end ()) {
369- with_lock (AllocState->Alloc ) {
369+ with_lock (* AllocState->Alloc ) {
370370 const auto & [type, uv] = GetParameterUnboxedValue (name);
371371 NKikimrMiniKQL::TParams param;
372372 ExportTypeToProto (type, *param.MutableType ());
@@ -388,7 +388,7 @@ const Ydb::TypedValue* TQueryData::GetParameterTypedValue(const TString& name) {
388388
389389 auto it = ParamsProtobuf.find (name);
390390 if (it == ParamsProtobuf.end ()) {
391- with_lock (AllocState->Alloc ) {
391+ with_lock (* AllocState->Alloc ) {
392392 const auto & [type, uv] = GetParameterUnboxedValue (name);
393393
394394 auto & tv = ParamsProtobuf[name];
0 commit comments