• 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
..
change-streams Loading commit data...
command-monitoring Loading commit data...
crud Loading commit data...
retryable-reads Loading commit data...
retryable-writes Loading commit data...
transactions Loading commit data...
transactions-convenient-api Loading commit data...
ChangeStreamsSpecTest.php Loading commit data...
CommandExpectations.php Loading commit data...
CommandMonitoringSpecTest.php Loading commit data...
Context.php Loading commit data...
CrudSpecTest.php Loading commit data...
DocumentsMatchConstraint.php Loading commit data...
DocumentsMatchConstraintTest.php Loading commit data...
ErrorExpectation.php Loading commit data...
FunctionalTestCase.php Loading commit data...
Operation.php Loading commit data...
PrimaryStepDownSpecTest.php Loading commit data...
ResultExpectation.php Loading commit data...
RetryableReadsSpecTest.php Loading commit data...
RetryableWritesSpecTest.php Loading commit data...
TransactionsSpecTest.php Loading commit data...