diff options
author | Steve Tarzia <steve.tarzia@mongodb.com> | 2023-03-08 21:42:22 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-03-09 00:53:07 +0000 |
commit | 6ad46e570e1aa80fbe2e1ff8ac7715fe23448f0c (patch) | |
tree | 2579705be5b2e095283a0b4783a5ce5d2d694047 /src | |
parent | 3ea6c5d91952644828427389d4fb0899b4f17b09 (diff) | |
download | mongo-6ad46e570e1aa80fbe2e1ff8ac7715fe23448f0c.tar.gz |
SERVER-74550 Reserve 25% of time budget for processing buffered partial results
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/s/query/cluster_find.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/query/cluster_find.cpp b/src/mongo/s/query/cluster_find.cpp index 85c2a7a4f37..2b7a3339eea 100644 --- a/src/mongo/s/query/cluster_find.cpp +++ b/src/mongo/s/query/cluster_find.cpp @@ -313,10 +313,10 @@ CursorId runQueryWithoutRetrying(OperationContext* opCtx, // deadline so that we have time to return partial results before the opCtx is killed. auto deadline = opCtx->getDeadline(); if (findCommand.getAllowPartialResults() && findCommand.getMaxTimeMS()) { - // Reserve 10% of the time budget (up to 100,000 microseconds max) for processing + // Reserve 25% of the time budget (up to 100,000 microseconds max) for processing // buffered partial results. deadline -= - Microseconds{std::min(1000LL * (*findCommand.getMaxTimeMS()) / 10, 100'000LL)}; + Microseconds{std::min(1000LL * findCommand.getMaxTimeMS().get() / 4, 100'000LL)}; LOGV2_DEBUG( 5746901, 0, |