diff options
author | Sergi Mateo Bellido <sergi.mateo-bellido@mongodb.com> | 2023-04-04 15:35:00 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-04 16:29:20 +0000 |
commit | 05794b52523f287f828a8fa692ac3f3ed6cd5dd1 (patch) | |
tree | e91f3be7570d8eebf782afee80254157ed172f8a /src/mongo | |
parent | 3228620f6e51c2f978ae1cfd015444a686ebc53a (diff) | |
download | mongo-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.cpp | 2 |
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 |