-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
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.