@@ -258,9 +258,10 @@ class TSharedPageCache : public TActorBootstrapped<TSharedPageCache> {
258
258
};
259
259
260
260
struct TRequest : public TSimpleRefCount <TRequest> {
261
- TRequest (TIntrusiveConstPtr<NPageCollection::IPageCollection> pageCollection)
261
+ TRequest (TIntrusiveConstPtr<NPageCollection::IPageCollection> pageCollection, NWilson::TTraceId &&traceId )
262
262
: Label(pageCollection->Label ())
263
263
, PageCollection(std::move(pageCollection))
264
+ , TraceId(std::move(traceId))
264
265
{
265
266
266
267
}
@@ -275,6 +276,7 @@ class TSharedPageCache : public TActorBootstrapped<TSharedPageCache> {
275
276
ui64 PendingBlocks = 0 ;
276
277
TBlocks ReadyBlocks;
277
278
TDeque<ui32> PagesToRequest;
279
+ NWilson::TTraceId TraceId;
278
280
};
279
281
280
282
struct TExpectant {
@@ -587,7 +589,7 @@ class TSharedPageCache : public TActorBootstrapped<TSharedPageCache> {
587
589
}
588
590
}
589
591
590
- auto waitingRequest = MakeIntrusive<TRequest>(std::move (msg->Fetch ->PageCollection ));
592
+ auto waitingRequest = MakeIntrusive<TRequest>(std::move (msg->Fetch ->PageCollection ), std::move (msg-> Fetch -> TraceId ) );
591
593
592
594
waitingRequest->Source = ev->Sender ;
593
595
waitingRequest->Owner = msg->Owner ;
@@ -674,7 +676,7 @@ class TSharedPageCache : public TActorBootstrapped<TSharedPageCache> {
674
676
} else {
675
677
AddInFlyPages (pagesToRequest.size (), pagesToRequestBytes);
676
678
// fetch cookie -> requested size
677
- auto *fetch = new NPageCollection::TFetch (pagesToRequestBytes, waitingRequest->PageCollection , std::move (pagesToRequest));
679
+ auto *fetch = new NPageCollection::TFetch (pagesToRequestBytes, waitingRequest->PageCollection , std::move (pagesToRequest), std::move (waitingRequest-> TraceId ) );
678
680
NBlockIO::Start (this , waitingRequest->Owner , 0 , waitingRequest->Priority , fetch);
679
681
}
680
682
}
@@ -758,7 +760,7 @@ class TSharedPageCache : public TActorBootstrapped<TSharedPageCache> {
758
760
AddInFlyPages (toLoad.size (), sizeToLoad);
759
761
// fetch cookie -> requested size;
760
762
// event cookie -> ptr to queue
761
- auto *fetch = new NPageCollection::TFetch (sizeToLoad, wa.PageCollection , std::move (toLoad));
763
+ auto *fetch = new NPageCollection::TFetch (sizeToLoad, wa.PageCollection , std::move (toLoad), std::move (wa. TraceId ) );
762
764
NBlockIO::Start (this , wa.Owner , (ui64)&queue, wa.Priority , fetch);
763
765
}
764
766
}
0 commit comments