Retain debug id in prefetch server-server call (#7754)

This commit is contained in:
Hao Fu 2022-08-01 19:46:45 -07:00 committed by GitHub
parent ef6012c1d1
commit 9db19b9a7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3866,6 +3866,9 @@ ACTOR Future<GetRangeReqAndResultRef> quickGetKeyValues(
if (SERVER_KNOBS->QUICK_GET_KEY_VALUES_FALLBACK) { if (SERVER_KNOBS->QUICK_GET_KEY_VALUES_FALLBACK) {
state Transaction tr(data->cx, pOriginalReq->tenantInfo.name.castTo<TenantName>()); state Transaction tr(data->cx, pOriginalReq->tenantInfo.name.castTo<TenantName>());
tr.setVersion(version); tr.setVersion(version);
if (pOriginalReq->debugID.present()) {
tr.debugTransaction(pOriginalReq->debugID.get());
}
// TODO: is DefaultPromiseEndpoint the best priority for this? // TODO: is DefaultPromiseEndpoint the best priority for this?
tr.trState->taskID = TaskPriority::DefaultPromiseEndpoint; tr.trState->taskID = TaskPriority::DefaultPromiseEndpoint;
Future<RangeResult> rangeResultFuture = Future<RangeResult> rangeResultFuture =