mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 09:58:50 +08:00
Fix limit bug in indexPrefetch (#7004)
limit for getRange was incorrectly set to 1, while a single logical record is consists of at least 2 keyValue, causing record layer fail to unsplit the logical record.
This commit is contained in:
parent
5403a29ecb
commit
0362beb3f3
@ -3455,7 +3455,8 @@ ACTOR Future<GetRangeReqAndResultRef> quickGetKeyValues(
|
|||||||
tr.setVersion(version);
|
tr.setVersion(version);
|
||||||
// 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 = tr.getRange(prefixRange(prefix), Snapshot::True);
|
Future<RangeResult> rangeResultFuture =
|
||||||
|
tr.getRange(prefixRange(prefix), GetRangeLimits::ROW_LIMIT_UNLIMITED, Snapshot::True);
|
||||||
// TODO: async in case it needs to read from other servers.
|
// TODO: async in case it needs to read from other servers.
|
||||||
RangeResult rangeResult = wait(rangeResultFuture);
|
RangeResult rangeResult = wait(rangeResultFuture);
|
||||||
a->dependsOn(rangeResult.arena());
|
a->dependsOn(rangeResult.arena());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user