diff options
Diffstat (limited to 'src/mongo/db/system_index.cpp')
-rw-r--r-- | src/mongo/db/system_index.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mongo/db/system_index.cpp b/src/mongo/db/system_index.cpp index 2283e75c9d6..8386e02710a 100644 --- a/src/mongo/db/system_index.cpp +++ b/src/mongo/db/system_index.cpp @@ -129,13 +129,6 @@ void generateSystemIndexForExistingCollection(OperationContext* opCtx, } // namespace Status verifySystemIndexes(OperationContext* opCtx) { - // Do not try and generate any system indexes in read only mode. - if (storageGlobalParams.readOnly) { - LOGV2_WARNING(22489, - "Running in queryable backup mode. Unable to create authorization indexes"); - return Status::OK(); - } - const NamespaceString& systemUsers = AuthorizationManager::usersCollectionNamespace; const NamespaceString& systemRoles = AuthorizationManager::rolesCollectionNamespace; |