Commit 940b8ac
committed
fix(uncommited db transaction) FsEventMapper::insertRow() must not return from within an active transaction.
Why: the database connection is shared between all the code of the PHP
script life-time. Opening another transaction from within an transaction
is ok, but not committing that transaction is not ok as this will
finally lead to a state where the script exits with positive transaction
nesting level. This has the effect that ALL database mutations performed
by ALL other modules (and also by the context_chat) module will just be
discarded.
Thus, if any app does not properly commit all transaction frames it has
started then "evil things" will happen ;)
Signed-off-by: Claus-Justus Heine <[email protected]>1 parent 7526d00 commit 940b8ac
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
0 commit comments