summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/db/catalog/collection_validation.cpp2
-rw-r--r--src/mongo/db/commands/dbhash.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/collection_validation.cpp b/src/mongo/db/catalog/collection_validation.cpp
index 5fc1c4e2b87..000e62bbc13 100644
--- a/src/mongo/db/catalog/collection_validation.cpp
+++ b/src/mongo/db/catalog/collection_validation.cpp
@@ -469,7 +469,7 @@ Status validate(OperationContext* opCtx,
// an index build that has just failed and is trying to write using the same timestamp we
// are using to read. Impose a generous maximum timeout to force validate to time out and
// allow the index build to make progress. See SERVER-53445.
- opCtx->lockState()->setMaxLockTimeout(duration_cast<Milliseconds>(Seconds(30)));
+ opCtx->lockState()->setMaxLockTimeout(duration_cast<Milliseconds>(Seconds(15)));
}
try {
diff --git a/src/mongo/db/commands/dbhash.cpp b/src/mongo/db/commands/dbhash.cpp
index fe7c1028c60..0ff604b8e78 100644
--- a/src/mongo/db/commands/dbhash.cpp
+++ b/src/mongo/db/commands/dbhash.cpp
@@ -220,7 +220,7 @@ public:
// just failed and is trying to write using the same timestamp we are using to read.
// Impose a generous maximum timeout to force dbHash to time out and allow the index
// build to make progress. See SERVER-53376.
- opCtx->lockState()->setMaxLockTimeout(duration_cast<Milliseconds>(Seconds(30)));
+ opCtx->lockState()->setMaxLockTimeout(duration_cast<Milliseconds>(Seconds(15)));
// Additionally, if we are performing a read at a timestamp, then we allow oplog
// application to proceed concurrently with the dbHash command. This is done