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:
parent
dff34162ed
commit
8714394d42
|
@ -2945,7 +2945,7 @@ ACTOR Future<Void> readVersionBatcher( DatabaseContext *cx, FutureStream< std::p
|
||||||
if (requests.size() == CLIENT_KNOBS->MAX_BATCH_SIZE)
|
if (requests.size() == CLIENT_KNOBS->MAX_BATCH_SIZE)
|
||||||
send_batch = true;
|
send_batch = true;
|
||||||
else if (!timeout.isValid())
|
else if (!timeout.isValid())
|
||||||
timeout = delay(batchTime, cx->taskID);
|
timeout = delay(batchTime, TaskProxyGetConsistentReadVersion);
|
||||||
}
|
}
|
||||||
when(wait(timeout.isValid() ? timeout : Never())) {
|
when(wait(timeout.isValid() ? timeout : Never())) {
|
||||||
send_batch = true;
|
send_batch = true;
|
||||||
|
|
Loading…
Reference in New Issue