Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
None
-
None
Description
The GridFS class constructor tries to create indexes on the .files and .chunks collection. If the database is read-only - for instance, due to the temporary unavailability of some mongoD's in a replicaset - this causes an attempt to read data to fail.
The indexes should be created when the databases is initialized.