And now use spilledOnly as a hint to do parallel peeks.

If there's some spilled data, there's probably a lot of spilled data,
and now we can pull all of it faster.
This commit is contained in:
Alex Miller 2019-05-14 21:03:44 -10:00
parent 4eb4c03ce5
commit 658e61b394
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ Future<Void> ILogSystem::ServerPeekCursor::getMore(int taskID) {
if( hasMessage() )
return Void();
if( !more.isValid() || more.isReady() ) {
more = parallelGetMore ? serverPeekParallelGetMore(this, taskID) : serverPeekGetMore(this, taskID);
more = (parallelGetMore || onlySpilled) ? serverPeekParallelGetMore(this, taskID) : serverPeekGetMore(this, taskID);
}
return more;
}