Commit 8868ebe
committed
ACPT-1413
Removed getProcessConnectionName from lib/internal/Magento/Framework/App/ResourceConnection.php
We cannot have separate connections in this class based on the process id. The reason is that because some objects have references to the connection object before the fork, and therefore the child would be accessing a different data connection in some classes, which could break the expected transaction functionality. In other words, the getProcessConnectionName functionality did not work in cases where objects used by child process had a member variable to the parent process's connection (Mysql Adapter).
We added avoidReusingParentProcessConnection() in Mysql adapter to avoid using the parent's connection.1 parent d1c64cc commit 8868ebe
1 file changed
+4
-21
lines changedLines changed: 4 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
152 | | - | |
| 150 | + | |
| 151 | + | |
153 | 152 | | |
154 | 153 | | |
155 | 154 | | |
| |||
162 | 161 | | |
163 | 162 | | |
164 | 163 | | |
165 | | - | |
| 164 | + | |
166 | 165 | | |
167 | 166 | | |
168 | 167 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | 168 | | |
186 | 169 | | |
187 | 170 | | |
| |||
0 commit comments