Details
Description
FeatureFlagUtil.isPresentAndEnabled() fails in the catch block inside if the object passed to it in is not Mongo object. We should pass `db.getMongo()` instead of just `db`:
try { |
setConn(db);
|
} catch (err) { |
// Some db-like objects (e.g. ShardingTest.shard0) aren't supported by FixtureHelpers, |
// but we can replace it with an object that should work and try again. |
setConn(db.getDB(db.defaultDB));
|
}
|
Other callees of the function pass db.getMongo() as well.