increase the priority of the client’s version batch timeout, so that we prefer issuing the batch over other possible work

This commit is contained in:
Evan Tschannen 2019-04-01 18:37:40 -07:00
parent dff34162ed
commit 8714394d42
1 changed files with 1 additions and 1 deletions

View File

@ -2945,7 +2945,7 @@ ACTOR Future<Void> readVersionBatcher( DatabaseContext *cx, FutureStream< std::p
if (requests.size() == CLIENT_KNOBS->MAX_BATCH_SIZE)
send_batch = true;
else if (!timeout.isValid())
timeout = delay(batchTime, cx->taskID);
timeout = delay(batchTime, TaskProxyGetConsistentReadVersion);
}
when(wait(timeout.isValid() ? timeout : Never())) {
send_batch = true;