1
0
mirror of https://github.com/apple/foundationdb.git synced 2025-06-01 02:37:02 +08:00

Merge pull request from sfc-gh-fzhao/SetFetchKey

set isFetchKeys for getRangeStreamFragment
This commit is contained in:
Jingyu Zhou 2022-07-11 13:25:24 -07:00 committed by GitHub
commit 58aa5a9e1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4719,6 +4719,9 @@ ACTOR Future<Void> getRangeStreamFragment(Reference<TransactionState> trState,
req.spanContext = spanContext;
req.limit = reverse ? -CLIENT_KNOBS->REPLY_BYTE_LIMIT : CLIENT_KNOBS->REPLY_BYTE_LIMIT;
req.limitBytes = std::numeric_limits<int>::max();
// leaving the flag off for now to prevent data fetches stall under heavy load
// it is used to inform the storage that the rangeRead is for Fetch
// req.isFetchKeys = (trState->taskID == TaskPriority::FetchKeys);
trState->cx->getLatestCommitVersions(
locations[shard].locations, req.version, trState, req.ssLatestCommitVersions);