• Jeremy Mikola's avatar
    Rely on Collection to apply read/write opts for old servers · bbfad489
    Jeremy Mikola authored
    Server versions < 3.4 do not support write concerns for drop commands. Rather than pass the context's write options directly to drop(), filter them through the Collection class so it can decide to inherit them based on the server's wire version.
    
    Likewise for executing find() on the output collection.
    bbfad489
Name
Last commit
Last update
..
Collection Loading commit data...
Compat Loading commit data...
Database Loading commit data...
GridFS Loading commit data...
Model Loading commit data...
Operation Loading commit data...
SpecTests Loading commit data...
ClientFunctionalTest.php Loading commit data...
ClientTest.php Loading commit data...
CommandObserver.php Loading commit data...
DocumentationExamplesTest.php Loading commit data...
FunctionalTestCase.php Loading commit data...
FunctionsTest.php Loading commit data...
PedantryTest.php Loading commit data...
TestCase.php Loading commit data...
bootstrap.php Loading commit data...