Commit 33e76d8
Optimizing cluster initialization changing the checks for cluster-enabled flag (#3158)
* change if the cluster-mode is enabled by trying run CLUSTER SLOT insted of INFO
* fix typo
* fixing cluster mode is not enabled on this node tests
* remove changes on asyncio
* rename mock flag to be more consistent
* optimizing async cluster creation using CLUSTER SLOT command instead of INFO command
* fixing test. Before INFO and CLUSTER_SLOT was used for performing the connection, now only the CLUSTER_SLOT, so the total commands is minus 1
* remove dot at the end of string
* remove unecessary print from test
* fix lint problems
---------
Co-authored-by: Willian Moreira <[email protected]>1 parent 49cbc44 commit 33e76d8
File tree
4 files changed
+32
-16
lines changed- redis
- asyncio
- tests
- test_asyncio
4 files changed
+32
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1226 | 1226 | | |
1227 | 1227 | | |
1228 | 1228 | | |
1229 | | - | |
1230 | | - | |
1231 | | - | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
1232 | 1232 | | |
1233 | 1233 | | |
1234 | 1234 | | |
1235 | | - | |
1236 | 1235 | | |
1237 | 1236 | | |
1238 | 1237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1513 | 1513 | | |
1514 | 1514 | | |
1515 | 1515 | | |
1516 | | - | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
1517 | 1519 | | |
1518 | 1520 | | |
1519 | 1521 | | |
1520 | | - | |
1521 | 1522 | | |
1522 | 1523 | | |
1523 | 1524 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
| |||
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| 145 | + | |
143 | 146 | | |
144 | | - | |
145 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
| |||
2457 | 2463 | | |
2458 | 2464 | | |
2459 | 2465 | | |
2460 | | - | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
2461 | 2470 | | |
2462 | 2471 | | |
2463 | 2472 | | |
| |||
2718 | 2727 | | |
2719 | 2728 | | |
2720 | 2729 | | |
2721 | | - | |
2722 | 2730 | | |
2723 | 2731 | | |
2724 | | - | |
| 2732 | + | |
2725 | 2733 | | |
2726 | 2734 | | |
2727 | 2735 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
155 | 157 | | |
156 | 158 | | |
157 | 159 | | |
| |||
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
167 | | - | |
168 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
169 | 174 | | |
170 | 175 | | |
171 | 176 | | |
| |||
2651 | 2656 | | |
2652 | 2657 | | |
2653 | 2658 | | |
2654 | | - | |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
| 2662 | + | |
2655 | 2663 | | |
2656 | 2664 | | |
2657 | 2665 | | |
| |||
0 commit comments