diff options
author | mathisbessamdb <mathis.bessa@mongodb.com> | 2023-02-16 17:41:03 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-02-16 21:48:09 +0000 |
commit | bf7362388717aa9f1fffbb97d57d60278147258e (patch) | |
tree | 118970a85c83dddf79ea59347b2d95dbebba969e /src/mongo/db/service_entry_point_common.cpp | |
parent | b7548b6c10697166a35baf1044049f4c6d06fdd2 (diff) | |
download | mongo-bf7362388717aa9f1fffbb97d57d60278147258e.tar.gz |
SERVER-73654 Use DatabaseName util Deserialize for LinearizableRead Check
Diffstat (limited to 'src/mongo/db/service_entry_point_common.cpp')
-rw-r--r-- | src/mongo/db/service_entry_point_common.cpp | 5 |
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); |