File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,14 @@ def __init_config_params(self, config):
85
85
params .setdefault ('writePeriodicNoops' , 1 )
86
86
config ['setParameter' ] = params
87
87
88
+ # no 'journal' after 6.1 onwards...
89
+ # https://www.mongodb.com/docs/manual/reference/program/mongod/#options
90
+ if self .version >= (6 , 1 ):
91
+ if config .get ('journal' ):
92
+ config .pop ('journal' )
93
+ if config .get ('nojournal' ):
94
+ config .pop ('nojournal' )
95
+
88
96
compressors = config .get ('networkMessageCompressors' )
89
97
if compressors is None :
90
98
if self .version >= (4 , 1 , 7 ):
@@ -584,4 +592,4 @@ def host_to_server_id(self, hostname):
584
592
return server_id
585
593
586
594
def is_alive (self , server_id ):
587
- return self ._storage [server_id ].is_alive
595
+ return self ._storage [server_id ].is_alive
You can’t perform that action at this time.
0 commit comments