tw: don't clean up tables in transaction
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/888/head
parent
f8f9ce7b4a
commit
4d19451471
|
@ -226,9 +226,6 @@ class TimelineWrite
|
||||||
*/
|
*/
|
||||||
public function cleanupStale(): void
|
public function cleanupStale(): void
|
||||||
{
|
{
|
||||||
// Begin transaction
|
|
||||||
$this->connection->beginTransaction();
|
|
||||||
|
|
||||||
// Delete all stale records
|
// Delete all stale records
|
||||||
foreach (DELETE_TABLES as $table) {
|
foreach (DELETE_TABLES as $table) {
|
||||||
$query = $this->connection->getQueryBuilder();
|
$query = $this->connection->getQueryBuilder();
|
||||||
|
@ -245,9 +242,6 @@ class TimelineWrite
|
||||||
->executeStatement()
|
->executeStatement()
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Commit transaction
|
|
||||||
$this->connection->commit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue