File tree Expand file tree Collapse file tree 1 file changed +21
-20
lines changed Expand file tree Collapse file tree 1 file changed +21
-20
lines changed Original file line number Diff line number Diff line change @@ -36,33 +36,34 @@ public function setSettings(
36
36
string $ mergeSettingsFrom = ''
37
37
): void
38
38
{
39
- if ($ this ->config ->shouldForwardPrimaryIndexSettingsToReplicas ($ indexOptions ->getStoreId ())) {
40
- [$ forward , $ noForward ] = $ this ->splitSettings ($ indexSettings );
41
- if ($ forward ) {
42
- $ this ->connector ->setSettings (
43
- $ indexOptions ,
44
- $ forward ,
45
- true ,
46
- false
47
- );
48
- }
49
- if ($ noForward ) {
50
- $ this ->connector ->setSettings (
51
- $ indexOptions ,
52
- $ noForward ,
53
- false ,
54
- true ,
55
- $ mergeSettingsFrom
56
- );
57
- }
58
- } else {
39
+ if (!$ this ->config ->shouldForwardPrimaryIndexSettingsToReplicas ($ indexOptions ->getStoreId ())) {
59
40
$ this ->connector ->setSettings (
60
41
$ indexOptions ,
61
42
$ indexSettings ,
62
43
false ,
63
44
true ,
64
45
$ mergeSettingsFrom
65
46
);
47
+ return ;
48
+ }
49
+
50
+ [$ forward , $ noForward ] = $ this ->splitSettings ($ indexSettings );
51
+ if ($ forward ) {
52
+ $ this ->connector ->setSettings (
53
+ $ indexOptions ,
54
+ $ forward ,
55
+ true ,
56
+ false
57
+ );
58
+ }
59
+ if ($ noForward ) {
60
+ $ this ->connector ->setSettings (
61
+ $ indexOptions ,
62
+ $ noForward ,
63
+ false ,
64
+ true ,
65
+ $ mergeSettingsFrom
66
+ );
66
67
}
67
68
}
68
69
You can’t perform that action at this time.
0 commit comments