diff options
Diffstat (limited to 'src/mongo/db/catalog/drop_database.cpp')
-rw-r--r-- | src/mongo/db/catalog/drop_database.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/drop_database.cpp b/src/mongo/db/catalog/drop_database.cpp index 85e2087a321..9445deb39d5 100644 --- a/src/mongo/db/catalog/drop_database.cpp +++ b/src/mongo/db/catalog/drop_database.cpp @@ -129,7 +129,7 @@ Status _dropDatabase(OperationContext* opCtx, const std::string& dbName, bool ab uassert(ErrorCodes::IllegalOperation, "Cannot drop a database in read-only mode", - !storageGlobalParams.readOnly); + !opCtx->readOnly()); // As of SERVER-32205, dropping the admin database is prohibited. uassert(ErrorCodes::IllegalOperation, |