File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2149,6 +2149,7 @@ def __init__(
2149
2149
** kwargs ,
2150
2150
):
2151
2151
""" """
2152
+ self .command_stack = []
2152
2153
self .nodes_manager = nodes_manager
2153
2154
self .commands_parser = commands_parser
2154
2155
self .refresh_table_asap = False
@@ -2182,7 +2183,6 @@ def __init__(
2182
2183
self ._execution_strategy : ExecutionStrategy = (
2183
2184
PipelineStrategy (self ) if not transaction else TransactionStrategy (self )
2184
2185
)
2185
- self .command_stack = self ._execution_strategy ._command_queue
2186
2186
2187
2187
def __repr__ (self ):
2188
2188
""" """
@@ -2204,7 +2204,7 @@ def __del__(self):
2204
2204
2205
2205
def __len__ (self ):
2206
2206
""" """
2207
- return len (self .command_stack )
2207
+ return len (self ._execution_strategy . command_queue )
2208
2208
2209
2209
def __bool__ (self ):
2210
2210
"Pipeline instances should always evaluate to True on Python 3+"
You can’t perform that action at this time.
0 commit comments