File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
app/code/Magento/Indexer/Model
lib/internal/Magento/Framework/App Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -87,12 +87,13 @@ private function multiThreadsExecute($userFunctions)
87
87
$ this ->startChildProcess ($ userFunction );
88
88
}
89
89
}
90
- while (pcntl_waitpid (0 , $ status ) != -1 );
90
+ while (pcntl_waitpid (0 , $ status ) != -1 ) {
91
+ //Waiting for the completion of child processes
92
+ }
91
93
92
94
if ($ this ->failInChildProcess ) {
93
95
throw new \RuntimeException ('Fail in child process ' );
94
96
}
95
-
96
97
}
97
98
98
99
/**
Original file line number Diff line number Diff line change @@ -104,9 +104,9 @@ public function getConnection($resourceName = self::DEFAULT_CONNECTION)
104
104
public function closeConnection ($ resourceName = self ::DEFAULT_CONNECTION )
105
105
{
106
106
if ($ resourceName === null ) {
107
- foreach ($ this ->connections as $ processConnectionName => $ value ) {
108
- if ($ this -> connections [ $ processConnectionName ] instanceof AdapterInterface) {
109
- $ this -> connections [ $ processConnectionName ] ->closeConnection ();
107
+ foreach ($ this ->connections as $ processConnection ) {
108
+ if ($ processConnection instanceof AdapterInterface) {
109
+ $ processConnection ->closeConnection ();
110
110
}
111
111
}
112
112
$ this ->connections = [];
You can’t perform that action at this time.
0 commit comments