@@ -21,7 +21,7 @@ class StandardEnv(object):
2121 def __init__ (self , redisBinaryPath , port = 6379 , modulePath = None , moduleArgs = None , outputFilesFormat = None ,
2222 dbDirPath = None , useSlaves = False , serverId = 1 , password = None , libPath = None , clusterEnabled = False , decodeResponses = False ,
2323 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 ):
2525 self .uuid = uuid .uuid4 ().hex
2626 self .redisBinaryPath = os .path .expanduser (redisBinaryPath ) if redisBinaryPath .startswith (
2727 '~/' ) else redisBinaryPath
@@ -53,6 +53,7 @@ def __init__(self, redisBinaryPath, port=6379, modulePath=None, moduleArgs=None,
5353 self .tlsKeyFile = tlsKeyFile
5454 self .tlsCaCertFile = tlsCaCertFile
5555 self .clusterNodeTimeout = clusterNodeTimeout
56+ self .disableRdbChecksum = disableRdbChecksum
5657
5758 if port > 0 :
5859 self .port = port
@@ -197,6 +198,8 @@ def createCmdArgs(self, role):
197198 cmdArgs += ['--tls-cert-file' , self .getTLSCertFile ()]
198199 cmdArgs += ['--tls-key-file' , self .getTLSKeyFile ()]
199200 cmdArgs += ['--tls-ca-cert-file' , self .getTLSCACertFile ()]
201+ if self .disableRdbChecksum :
202+ cmdArgs += ['--rdbchecksum' , 'no' ]
200203
201204 return cmdArgs
202205
0 commit comments