@@ -21,7 +21,7 @@ class StandardEnv(object):
21
21
def __init__ (self , redisBinaryPath , port = 6379 , modulePath = None , moduleArgs = None , outputFilesFormat = None ,
22
22
dbDirPath = None , useSlaves = False , serverId = 1 , password = None , libPath = None , clusterEnabled = False , decodeResponses = False ,
23
23
useAof = False , useRdbPreamble = True , debugger = None , noCatch = False , unix = False , verbose = False , useTLS = False , tlsCertFile = None ,
24
- tlsKeyFile = None , tlsCaCertFile = None , clusterNodeTimeout = None ):
24
+ tlsKeyFile = None , tlsCaCertFile = None , clusterNodeTimeout = None , disableRdbChecksum = False ):
25
25
self .uuid = uuid .uuid4 ().hex
26
26
self .redisBinaryPath = os .path .expanduser (redisBinaryPath ) if redisBinaryPath .startswith (
27
27
'~/' ) else redisBinaryPath
@@ -53,6 +53,7 @@ def __init__(self, redisBinaryPath, port=6379, modulePath=None, moduleArgs=None,
53
53
self .tlsKeyFile = tlsKeyFile
54
54
self .tlsCaCertFile = tlsCaCertFile
55
55
self .clusterNodeTimeout = clusterNodeTimeout
56
+ self .disableRdbChecksum = disableRdbChecksum
56
57
57
58
if port > 0 :
58
59
self .port = port
@@ -197,6 +198,8 @@ def createCmdArgs(self, role):
197
198
cmdArgs += ['--tls-cert-file' , self .getTLSCertFile ()]
198
199
cmdArgs += ['--tls-key-file' , self .getTLSKeyFile ()]
199
200
cmdArgs += ['--tls-ca-cert-file' , self .getTLSCACertFile ()]
201
+ if self .disableRdbChecksum :
202
+ cmdArgs += ['--rdbchecksum' , 'no' ]
200
203
201
204
return cmdArgs
202
205
0 commit comments