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);
|
||||
// TODO: is DefaultPromiseEndpoint the best priority for this?
|
||||
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.
|
||||
RangeResult rangeResult = wait(rangeResultFuture);
|
||||
a->dependsOn(rangeResult.arena());
|
||||
|
|
Loading…
Reference in New Issue