File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ import (
2020	"go.mongodb.org/mongo-driver/v2/x/mongo/driver/description" 
2121)
2222
23+ const  (
24+ 	MinWireVersion  =  6 
25+ 	MaxWireVersion  =  25 
26+ )
27+ 
2328func  equalWireVersion (wv1 , wv2  * description.VersionRange ) bool  {
2429	if  wv1  ==  nil  &&  wv2  ==  nil  {
2530		return  true 
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import (
1313
1414	"go.mongodb.org/mongo-driver/v2/bson" 
1515	"go.mongodb.org/mongo-driver/v2/internal/csot" 
16+ 	"go.mongodb.org/mongo-driver/v2/internal/driverutil" 
1617	"go.mongodb.org/mongo-driver/v2/mongo/address" 
1718	"go.mongodb.org/mongo-driver/v2/x/bsonx/bsoncore" 
1819	"go.mongodb.org/mongo-driver/v2/x/mongo/driver" 
4041		MaxBatchCount :         maxBatchCount ,
4142		SessionTimeoutMinutes : & sessionTimeoutMinutes ,
4243		Kind :                  description .ServerKindRSPrimary ,
44+ 		WireVersion : & description.VersionRange {
45+ 			Max : driverutil .MaxWireVersion ,
46+ 		},
4347	}
4448)
4549
Original file line number Diff line number Diff line change 2323	MinSupportedMongoDBVersion  =  "3.6" 
2424
2525	// SupportedWireVersions is the range of wire versions supported by the driver. 
26- 	SupportedWireVersions  =  driverutil .NewVersionRange (6 ,  25 )
26+ 	SupportedWireVersions  =  driverutil .NewVersionRange (driverutil . MinWireVersion ,  driverutil . MaxWireVersion )
2727)
2828
2929type  fsm  struct  {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments