@@ -712,6 +712,7 @@ def pipeline(self, transaction=None, shard_hint=None):
712
712
713
713
return ClusterPipeline (
714
714
nodes_manager = self .nodes_manager ,
715
+ commands_parser = self .commands_parser ,
715
716
startup_nodes = self .nodes_manager .startup_nodes ,
716
717
result_callbacks = self .result_callbacks ,
717
718
cluster_response_callbacks = self .cluster_response_callbacks ,
@@ -1598,6 +1599,7 @@ class ClusterPipeline(RedisCluster):
1598
1599
def __init__ (
1599
1600
self ,
1600
1601
nodes_manager ,
1602
+ commands_parser ,
1601
1603
result_callbacks = None ,
1602
1604
cluster_response_callbacks = None ,
1603
1605
startup_nodes = None ,
@@ -1610,6 +1612,7 @@ def __init__(
1610
1612
log .info ("Creating new instance of ClusterPipeline" )
1611
1613
self .command_stack = []
1612
1614
self .nodes_manager = nodes_manager
1615
+ self .commands_parser = commands_parser
1613
1616
self .refresh_table_asap = False
1614
1617
self .result_callbacks = (
1615
1618
result_callbacks or self .__class__ .RESULT_CALLBACKS .copy ()
@@ -1627,11 +1630,6 @@ def __init__(
1627
1630
kwargs .get ("decode_responses" , False ),
1628
1631
)
1629
1632
1630
- # The commands parser refers to the parent
1631
- # so that we don't push the COMMAND command
1632
- # onto the stack
1633
- self .commands_parser = CommandsParser (super ())
1634
-
1635
1633
def __repr__ (self ):
1636
1634
""" """
1637
1635
return f"{ type (self ).__name__ } "
0 commit comments