summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorSergi Mateo Bellido <sergi.mateo-bellido@mongodb.com>2023-04-04 15:35:00 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-04-04 16:29:20 +0000
commit05794b52523f287f828a8fa692ac3f3ed6cd5dd1 (patch)
treee91f3be7570d8eebf782afee80254157ed172f8a /src/mongo
parent3228620f6e51c2f978ae1cfd015444a686ebc53a (diff)
downloadmongo-05794b52523f287f828a8fa692ac3f3ed6cd5dd1.tar.gz
SERVER-75642 Fixing dropDb mitigation database metadata code
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/db/s/drop_database_coordinator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/drop_database_coordinator.cpp b/src/mongo/db/s/drop_database_coordinator.cpp
index 0f1389c4141..3f77b3044e2 100644
--- a/src/mongo/db/s/drop_database_coordinator.cpp
+++ b/src/mongo/db/s/drop_database_coordinator.cpp
@@ -353,7 +353,7 @@ ExecutorFuture<void> DropDatabaseCoordinator::_runImpl(
// ensure we do not delete collections of a different DB
if (!_firstExecution &&
isDbAlreadyDropped(opCtx, _doc.getDatabaseVersion(), _dbName)) {
- if (!_isPre70Compatible()) {
+ if (_isPre70Compatible()) {
// Clear the database sharding state so that all subsequent write operations
// with the old database version will fail due to StaleDbVersion.
// Note: because we are using an scoped critical section it could happen