diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2024-02-26 14:13:41 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2024-06-14 12:10:35 +0200 |
commit | d139f2fe87eef3b863b0cbbe810c9bde92fb3ec5 (patch) | |
tree | 340f384c046f707e8ecf817ec07a3900993cb0eb /include | |
parent | 20a8da0683dc296860528873f28a8f766c3f328b (diff) | |
download | volse-hubzilla-d139f2fe87eef3b863b0cbbe810c9bde92fb3ec5.tar.gz volse-hubzilla-d139f2fe87eef3b863b0cbbe810c9bde92fb3ec5.tar.bz2 volse-hubzilla-d139f2fe87eef3b863b0cbbe810c9bde92fb3ec5.zip |
QueueWorker: Use DbaTransaction class for db transactions.
This makes sure that the system knows whether a transaction is active or
not, and ensures automatic cleanup if the transaction is not closed
before the methods return.
It also allows us to run this code in tests. When run within a test, the
transaction will be ignored, as the entire test is run within an
already existing transaction. Also as each test has their own db
connection, this should not have any ill effects, as there should not be
any way in which different simultaneous connections can interfere with
the db updates.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions