File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -463,6 +463,12 @@ def drop(opts = {})
463463 session : session ,
464464 operation_timeouts : operation_timeouts ( opts )
465465 )
466+ temp_write_concern = write_concern
467+ write_concern = if opts [ :write_concern ]
468+ WriteConcern . get ( opts [ :write_concern ] )
469+ else
470+ temp_write_concern
471+ end
466472 operation = Operation ::Drop . new ( {
467473 selector : { :drop => name } ,
468474 db_name : database . name ,
@@ -471,12 +477,6 @@ def drop(opts = {})
471477 } )
472478 tracer . trace_operation ( operation , context , op_name : 'dropCollection' ) do
473479 maybe_drop_emm_collections ( opts [ :encrypted_fields ] , client , session ) do
474- temp_write_concern = write_concern
475- write_concern = if opts [ :write_concern ]
476- WriteConcern . get ( opts [ :write_concern ] )
477- else
478- temp_write_concern
479- end
480480 do_drop ( operation , session , context )
481481 end
482482 end
You can’t perform that action at this time.
0 commit comments