summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/service_entry_point_common.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/service_entry_point_common.cpp b/src/mongo/db/service_entry_point_common.cpp
index 4a86de9a009..f357cfc87bb 100644
--- a/src/mongo/db/service_entry_point_common.cpp
+++ b/src/mongo/db/service_entry_point_common.cpp
@@ -1228,8 +1228,9 @@ void RunCommandImpl::_epilogue() {
});
behaviors.waitForLinearizableReadConcern(opCtx);
- tenant_migration_access_blocker::checkIfLinearizableReadWasAllowedOrThrow(
- opCtx, request.getDatabase());
+ const DatabaseName requestDbName =
+ DatabaseNameUtil::deserialize(request.getValidatedTenantId(), request.getDatabase());
+ tenant_migration_access_blocker::checkIfLinearizableReadWasAllowedOrThrow(opCtx, requestDbName);
// Wait for data to satisfy the read concern level, if necessary.
behaviors.waitForSpeculativeMajorityReadConcern(opCtx);